os.path

Stdlib — OS/FilePython 2.0+Beginner

Pathname manipulations: join, split, exists, isfile, isdir, abspath

Quick Info

Documentation
Official Docs
Python Version
2.0+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
import os.path

print(f"Module: os.path")
print(f"Contents: {dir(os.path)[:10]}")

The os.path module is part of Python's standard library. Pathname manipulations: join, split, exists, isfile, isdir, abspath.

Try in Playground

Tags

stdlibfile-iosystem