Much of the material in this document is taken from Appendix H.3 in the book A Primer on Scientific Programming with Python, 4th edition, by the same author, published by Springer, 2014.

Table of contents

Make a folder
Make intermediate folders
Move to a folder
Rename a file or folder
List files
List all files and folders in a folder
Check if a file or folder exists
Remove files
Remove a folder and all its subfolders
Copy a file to another file or folder
Copy a folder and all its subfolders
Run any operating system command
Split file or folder name
Traverse a folder tree