Python Basics Exercises: File System Operations
In Python Basics: File System Operations, you learned how to use Python to work with files and folders. As a programmer, you’ll use the pathlib
and shutil
modules to complete file system operations without relying on your graphical user interface (GUI).
While you already got lots of hands-on practice with file system operations, programmers never stop training! The more you use your new skills, the more comfortable you’ll be when it’s time to put them to work in your own coding. That’s why it’s a great idea to complete exercises to reinforce and test your knowledge of the file system.
In this video course, you’ll practice:
- Creating a directory
- Iterating over the contents of a directory
- Searching for files