Starting With Python's pathlib Module

Опубликовано: 10 June 2026
на канале: Real Python
7,034
193

If you've struggled with file path handling in Python, you really should look at pathlib. Working with files and interacting with the file system are important for many different reasons. The simplest cases may involve only reading or writing files, but sometimes more complex tasks are at hand.

In this video, you will see how to work with file paths—names of directories and files—in Python. You will also learn new ways to read and write files.

This is a portion of the complete course, which you can find here:
https://realpython.com/courses/pathli...

The rest of the course covers how to:

Moving and deleting files
Working with components of a path
Iterating over files in a path