Python stdlib module — genericpath. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.commonprefix()Neutralcommonprefix(m)
Given a list of pathnames, returns the longest common leading component
.exists()Neutralexists(path)
Test whether a path exists. Returns False for broken symbolic links
.getatime()Neutralgetatime(filename)
Return the last access time of a file, reported by os.stat().
.getctime()Neutralgetctime(filename)
Return the metadata change time of a file, reported by os.stat().
.getmtime()Neutralgetmtime(filename)
Return the last modification time of a file, reported by os.stat().
.samefile()Neutralsamefile(f1, f2)
Test whether two pathnames reference the same actual file or directory
.sameopenfile()Neutralsameopenfile(fp1, fp2)
Test whether two open file objects reference the same file
| FQN | Field | |
|---|---|---|
| genericpath | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import genericpath