Adapted and simplified from Franck Albinet's exercises available here. Also presented by NSRC at APRICOT 2018.
...
Import the basic operating system module (os): import os
., then try a few commands:
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') |
...