What does the pathlib module do?
Standard library essentials
Audio flashcard · 0:16Nortren·
What does the pathlib module do?
0:16
Pathlib provides an object-oriented interface for filesystem paths. The Path class supports cross-platform path manipulation, file reading and writing, directory traversal, and globbing. It replaces older approaches based on os.path strings and is the recommended modern way to handle paths.
docs.python.org