ID EN
OS Path

normcase

Python 3.11

Normalize the case of a pathname. On Windows, convert all characters in the pathname to lowercase, and also convert forward slashes to backward slashes. On other operating systems, return the path unchanged.

Syntax

PYTHON
os.path.normcase(path)

See Also

path-like object