Moving All Image Files to a New Directory (Challenge)
And start with a file and folder structure that you can download under Supporting Material from this course. There’ll be a ZIP file that you can unzip, and you will find a folder structure in there. There is a folder called
practice_files/ and then a subfolder called
documents/. Inside of that directory, there are several files and subfolders.
That’s going to be
image4.jpg. So, take on this challenge, try to practice using
pathlib some more, and build this little script that you can actually use to move image files from one location to another one.
Become a Member to join the conversation.