Tin mới
glob: Unix shell style pathname pattern expansion.
The patterns accepted and results generated by Path.glob() and Path.rglob() differ slightly from those by the glob module:
os: Miscellaneous operating system interfaces.
pathlib implements path operations using PurePath and Path objects, and so it’s said to be object-oriented. On the other hand, the os and os.path modules supply functions that work with low-level str and bytes objects, w
os.path: Operations on pathnames.
pathlib implements path operations using PurePath and Path objects, and so it’s said to be object-oriented. On the other hand, the os and os.path modules supply functions that work with low-level str and bytes objects, w
An exception inheriting NotImplementedError that is raised when an unsupported operation is called on a path object.
Paths are immutable and hashable. Paths of a same flavour are comparable and orderable. These properties respect the flavour’s case-folding semantics:
pwd: The password database (getpwnam() and friends).
Changed in version 3.13: Raises UnsupportedOperation if the pwd module is not available. In earlier versions, NotImplementedError was raised.
grp: The group database (getgrnam() and friends).
Changed in version 3.13: Raises UnsupportedOperation if the grp module is not available. In earlier versions, NotImplementedError was raised.