Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Python for File Systems Course (How To)

via Treehouse

Overview

Python is a great language for the automated handling of files and directories. In this course, you'll learn how to navigate your file system with Python and create and manipulate files and directories. At the end, you'll build a project starter to make starting your Flask project just a little bit easier.

What you'll learn

  • Manipulating files and directories with Python
  • Temporary files and directories
  • Automating file and directory creation

Syllabus

Navigation

Before we can easily manipulate files and directories, we need to know how to make our way around in them.

Chevron 8 steps
  • Quick File System Overview

    3:17

  • Python for File Systems: File System Review

    6 questions

  • Changing Directories

    4:36

  • Absolutely

    2 objectives

  • Creating Paths

    4:24

  • Review: Paths

    4 questions

  • Checking Directory Contents

    6:09

  • Dir Contents

    1 objective

Manipulation

Now that we can move around our system, let's see how to create, rename, and delete files and directories.

Chevron 8 steps
  • Creating Files and Directories

    6:08

  • Daily Backup

    1 objective

  • Renaming Files and Directories

    2:54

  • Consistency

    1 objective

  • Deleting Files and Directories

    5:19

  • Purging

    2 objectives

  • Temporary Files and Directories

    5:07

  • Python for File Systems: Manipulation Review

    6 questions

Project Starter

Let's use the various file and directory tools we've learned to create a Flask project starter.

Chevron 8 steps
  • What We're Going to Build

    1:01

  • Finding Our Work Site

    3:48

  • Solid Paths

    1 objective

  • Creating the Directory Structure

    10:13

  • Feeling Sluggish

    1 objective

  • Creating Files From Templates

    8:26

  • Wrapping Up and Moving On

    5:09

  • Review: Python for File Systems

    10 questions

Reviews

Start your review of Python for File Systems Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.