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 build out the directory structure of our project.
This video doesn't have any notes.
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
If the directory exists, we want to
make sure that they want to delete it
0:00
before we do that, and
we want to dump our stuff into it.
0:01
So they give us a directory,
we check to see if it's good or not.
0:04
If it exists we ask hey, do you want me
to delete this, and they will say yes or
0:08
no, and then we will act accordingly.
0:12
So I'm gonna call this check_delete_root
and it's gonna take a root, because I'm
0:16
gonna check to see if the root exists and
then whether or not to delete the root.
0:21
And I need to inboard a couple of things.
0:26
So first I'm going to import disutils.utl.
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