os.path — Common pathname manipulations — Python 3.11.16 documentation

docs.python.org

Tin mới

pathlib — Object-oriented filesystem paths

fileinput — Iterate over lines from multiple input streams

Python Module Index

3.11.16 Documentation

The Python Standard Library

File and Directory Access

os: Miscellaneous operating system interfaces.

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

glob: Unix shell style pathname pattern expansion.

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

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

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.