Practical Recipes for Working With Files in Python

Practical Recipes for Working With Files in Python

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 1h 13m | 302 MB

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
Table of Contents

1 Practical Recipes for Working With Files in Python (Overview)
2 Copying, Moving, and Renaming Files
3 Archiving Files
4 Reading Multiple File Inputs
5 Practical Recipes for Working With Files in Python (Summary)
6 Python’s with open() as Pattern
7 Getting a Directory Listing
8 Getting File Attributes
9 Making Directories
10 Deleting Files and Directories
11 Matching Filename Patterns
12 Traversing Directory Trees
13 Creating Temporary Files and Directories