Learn how to navigate and manage your filesystem with Python's built-in pathlib module. This tutorial covers creating and manipulating path objects, checking path status and types, iterating over directory contents, renaming and deleting files, resolving absolute paths, and performing recursive file searches with pathlib's powerful methods.

6m read timeFrom kdnuggets.com
Post cover image
Table of contents
Working with Path ObjectsNavigating the FilesystemFile GlobbingWrapping Up

Sort: