0PricingLogin
Learn AI with Python · Lesson

Working with os and shutil

Automate file and directory operations.

1

Working with os and shutil

Python’s os and shutil modules provide powerful tools for interacting with the file system, managing directories, and automating file-related tasks.

In this lesson, you’ll learn how to use these modules for tasks like file manipulation, directory management, and more.

Working with os and shutil — illustration 1

2

What Is the os Module?

The os module provides functions for interacting with the operating system, such as creating directories, deleting files, and getting environment variables.

All lessons in this course

  1. Automating Tasks with Scripts
  2. Working with os and shutil
  3. Automating Emails and Reports
← Back to Learn AI with Python