|
|
|
isabs(s)
Test whether a path is absolute |
|
|
|
join(a,
*p)
Join two or more pathname components, inserting "\" as
needed |
|
|
|
splitdrive(p)
Split a pathname into drive and path specifiers. |
|
|
|
splitunc(p)
Split a pathname into UNC mount point and relative path specifiers. |
|
|
|
split(p)
Split a pathname. |
|
|
|
splitext(p)
Split the extension from a pathname. |
|
|
|
basename(p)
Returns the final component of a pathname |
|
|
|
dirname(p)
Returns the directory component of a pathname |
|
|
|
commonprefix(m)
Given a list of pathnames, returns the longest common leading
component |
|
|
|
getsize(filename)
Return the size of a file, reported by os.stat() |
|
|
|
getmtime(filename)
Return the last modification time of a file, reported by os.stat() |
|
|
|
getatime(filename)
Return the last access time of a file, reported by os.stat() |
|
|
|
getctime(filename)
Return the creation time of a file, reported by os.stat(). |
|
|
|
islink(path)
Test for symbolic link. |
|
|
|
exists(path)
Test whether a path exists |
|
|
|
lexists(path)
Test whether a path exists |
|
|
|
isdir(path)
Test whether a path is a directory |
|
|
|
isfile(path)
Test whether a path is a regular file |
|
|
|
ismount(path)
Test whether a path is a mount point (defined as root of drive) |
|
|
|
walk(top,
func,
arg)
Directory tree walk with callback function. |
|
|
|
|
|
expandvars(path)
Expand shell variables of form $var and ${var}. |
|
|
|
normpath(path)
Normalize path, eliminating double slashes, etc. |
|
|
|
abspath(path)
Return the absolute version of a path. |
|
|
|
realpath(path)
Return the absolute version of a path. |
|
|