python-pathlib 1.0.1 Object-oriented file system paths
Pathlib offers a set of classes to handle file system paths. It offers the following advantages over using string objects:
No more cumbersome use of os and os.path functions. Everything can be done easily through operators, attribute accesses, and method calls.
Embodies the semantics of different path types. For example, comparing Windows paths ignores casing.
Well-defined semantics, eliminating any inconsistencies or ambiguities (forward vs. backward slashes, etc.).
Note: In Python 3.4, pathlib is now part of the standard library. For other Python versions please consider python-pathlib2 instead, which tracks the standard library module. This module (python-pathlib) isn't maintained anymore.