Loading video player…

Practical Recipes for Working With Files in Python (Overview)

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
  • Open multiple files using the fileinput module
Download

Sample Directories (.zip)

51.6 KB
Download

Course Slides (.pdf)

333.6 KB

Become a Member to join the conversation.