pathlib — Object-oriented filesystem paths — Python 3.11.16 documentation

docs.python.org

Tin mới

os: Miscellaneous operating system interfaces.

Below is a table mapping various os functions to their corresponding PurePath/Path equivalent.

File and Directory Access

os.path — Common pathname manipulations

Python Module Index

3.11.16 Documentation

The Python Standard Library

General properties¶

Paths are immutable and hashable. Paths of a same flavour are comparable and orderable. These properties respect the flavour’s case-folding semantics:

fnmatch: Unix shell style filename pattern matching.

Glob the given relative pattern in the directory represented by this path, yielding all matching files (of any kind):