10 Python File System Methods You Should Know

Manipulate Files and Folders With os and shutil

Jeff Hale
Towards Data Science
7 min readFeb 15, 2019

--

You can write Python programs to interact with the file system to do cool stuff. How to do so isn’t always super clear.

This article is a guide for current and aspiring developers and data scientists. We’ll highlight 10 essential os and shutil commands so you can write scripts to automate interactions with the file system.

--

--

I write about data things. Follow me on Medium and join my Data Awesome mailing list to stay on top of the latest data tools and tips: https://dataawesome.com