Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python for File Systems!
You have completed Python for File Systems!
Preview
Let's explore how to create files and directory trees in Python.
Treehouse Course
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
making our way around file systems.
0:00
We're now able to change the directory
we're working in, create paths for
0:00
the directories and files, and
0:03
check the stats of a file to see
how big it is and other things.
0:04
While all of that's pretty handy,
none of that gets us very far if we can't
0:08
do things with the files and
directories that we find.
0:11
This stage won't focus too
much on writing to files.
0:13
Check the teacher's notes if you want
more information on working with files.
0:16
Instead, we're going to look at
Python's tools for creating files and
0:19
directories as a step by itself.
0:22
While this will include writing to files,
we won't spend a lot of time on that.
0:24
Okay, let's go see how we can use Python
to create our files and directory trees.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up