Adapted and simplified from Franck Albinet's exercises available here. Also presented by NSRC at APRICOT 2018.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import os
# to find you current working directory:
os.getcwd() ## most probably the /flashfolder
# to list folders and files in your current working directory:
os.listdir()
# to create a new folder/directory named "log":
os.mkdir('log'); ... |
Take a look at os module documentation for a full list of methods.
...