Python logo

Table of Contents

  • pathlib — Object-oriented filesystem paths
    • Basic use
    • Exceptions
    • Pure paths
      • General properties
      • Operators
      • Accessing individual parts
      • Methods and properties
    • Concrete paths
      • Parsing and generating URIs
      • Expanding and resolving paths
      • Querying file type and status
      • Reading and writing files
      • Reading directories
      • Creating files and directories
      • Copying, moving and deleting
      • Permissions and ownership
    • Pattern language
    • Comparison to the glob module
    • Comparison to the os and os.path modules
      • Corresponding tools
    • Protocols

Previous topic

File and Directory Access

Next topic

os.path — Common pathname manipulations