Size: 1892
Comment:
|
Size: 1974
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 207: | Line 207: |
[[https://pymotw.com/3/os.path/|Python Module of the Day article for os.path]] |
Python Os Path
os.path is a module providing filesystem APIs.
Contents
Usage
AbsPath
See Path.absolute.
BaseName
See Path.name.
CommonPath
CommonPrefix
DirName
See Path.parent.
Exists
See Path.exists.
ExpandUser
See Path.expanduser and Path.home.
ExpandVars
GetATime
GetCTime
GetMTime
GetSize
IsAbs
See Path.is_absolute.
IsDir
See Path.is_dir.
IsFile
See Path.is_file.
IsLink
See Path.is_symlink.
Join
See Path.joinpath.
NormCase
NormPath
RealPath
See Path.resolve.
RelPath
See Path.relative_to.
SameFile
See Path.samefile.
SameOpenFile
SameStat
Split
SplitDrive
SplitExt
See Path.stem and Path.suffix.
See also
Python os.path module documentation
Python Module of the Day article for os.path