S_IFMT (mode) |
|
S_IMODE (mode) |
|
S_ISBLK (mode) |
|
S_ISCHR (mode) |
|
S_ISDIR (mode) |
|
S_ISFIFO (mode) |
|
S_ISLNK (mode) |
|
S_ISREG (mode) |
|
S_ISSOCK (mode) |
|
abspath (path) |
Return an absolute path. |
basename (s) |
|
commonprefix (m) |
Given a list of pathnames, returns the longest common leading component |
dirname (s) |
|
exists (path) |
Test whether a path exists. |
expanduser (path) |
Dummy to retain interface-compatibility with other operating systems. |
expandvars (path) |
Dummy to retain interface-compatibility with other operating systems. |
getatime (filename) |
Return the last access time of a file, reported by os.stat(). |
getctime (filename) |
Return the metadata change time of a file, reported by os.stat(). |
getmtime (filename) |
Return the last modification time of a file, reported by os.stat(). |
getsize (filename) |
Return the size of a file, reported by os.stat(). |
isabs (s) |
Return true if a path is absolute. |
isdir (s) |
Return true if the pathname refers to an existing directory. |
isfile (path) |
Test whether a path is a regular file |
islink (s) |
Return true if the pathname refers to a symbolic link. |
ismount (s) |
|
join (s, *p) |
|
lexists (path) |
Test whether a path exists. |
normcase (path) |
|
normpath (s) |
Normalize a pathname. |
realpath (path) |
|
split (s) |
Split a pathname into two parts: the directory leading up to the final bit, and the basename (the filename, without colons, in that directory). |
splitdrive (p) |
Split a pathname into a drive specification and the rest of the path. |
splitext (p) |
Split the extension from a pathname. |
walk (top, func, arg) |
Directory tree walk with callback function. |