os and os.path modules + glob
=============================
https://docs.python.org/3/library/os.html
import os
cwd = os.getcwd() Where are we currently, in which directory?
os.chdir("/tmp") change directory
os.mkdir("hello") create a folder
os.rmdir("hello") delete an (empty) folder
os.listdir(".") contents of the given folder
os.listdir("data/") contents of the data/ subdirectory
https://docs.python.org/3/library/os.path.html
import os
# No need for `import os.path`!
# After `import os`, `os.path` is also available
os.path.exists(entry) Does the entry exist?
os.path.isfile(entry) Is the entry a file?
os.path.isdir(entry) Is the entry a directory?
os.rename(old, new) rename a file
os.remove(fname) delete a file
os.unlink(fname) delete a file
https://docs.python.org/3/library/glob.html
from glob import glob
mp3s = glob("*.mp3") Using the patterns familiar from bash.
files = glob("data/*.txt")



