ID EN
OS

pathconf

Python 3.11

Return system configuration information relevant to a named file. name specifies the configuration value to retrieve; it may be a string which is the name of a defined system value; these names are specified in a number of standards (POSIX.1, Unix 95, Unix 98, and others). Some platforms define additional names as well. The names known to the host operating system are given in the pathconf_names dictionary. For configuration variables not included in that mapping, passing an integer for name is also accepted.

Syntax

PYTHON
os.pathconf(path, name)

See Also

ValueError OSError errno.EINVAL specifying a file descriptor Availability path-like object