Python has several built-in modules and functions for handling files. These functions are spread out over several modules such as os
, os.path
, shutil
, and pathlib
, to name a few. This course gathers in one place many of the functions you need to know in order to perform the most common operations on files in Python.
In this course, you’ll learn how to:
- Retrieve file properties
- Create directories
- Match patterns in filenames
- Traverse directory trees
- Make temporary files and directories
- Delete files and directories
- Copy, move, or rename files and directories
- Create and extract ZIP archives
[ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]
from Real Python
read more
No comments:
Post a Comment