os.path — Common pathname manipulations — Python 3.16.0a0 documentation

docs.python.org

Tin mới

pathlib — Object-oriented filesystem paths

stat — Interpreting stat() results

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

File and Directory Access

os: Miscellaneous operating system interfaces.

Source code: Lib/genericpath.py, Lib/posixpath.py (for POSIX) and Lib/ntpath.py (for Windows).

glob: Unix shell style pathname pattern expansion.

Source code: Lib/genericpath.py, Lib/posixpath.py (for POSIX) and Lib/ntpath.py (for Windows).

pwd: The password database (getpwnam() and friends).

On Unix and Windows, return the argument with an initial component of ~ or ~user replaced by that user’s home directory.

time: Time access and conversions.

Return the time of last access of path. The return value is a floating-point number giving the number of seconds since the epoch (see the time module). Raise OSError if the file does not exist or is inaccessible.