Differences between revisions 6 and 7
Revision 6 as of 2023-04-24 21:08:54
Size: 1892
Comment:
Revision 7 as of 2023-06-15 18:37:50
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.


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.


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


CategoryRicottone

Python/Os/Path (last edited 2023-10-11 19:43:17 by DominicRicottone)