Section II. Now it is your turn to create the Python program which creates a structure of folders within the Raspberry Pi.
- Delete all sub-directories within "temp" directory if not empty.
- In Python program change the current working directory to [temp].
- Display the current working directory (using os.getcwd)
- Create a python program to create the following directory structure.
- Create the directory folders below the [temp] directory.
[home dir] #This is your home directory (i.e. ~)
|
[temp] # this is the directory to be created below ~
/ \
[Winnie] [Tigger]
/ \ / \
[Piglet] [Eyore] [Chris] [Owl]
- Issue the command "tree" with "os.popen" and display the result to the screen using the "print" command.
Section 3:
- Turn in the code
- Turn in screenshots you should have at least 4 screenshots of various required operations (at least the 4 screenshots as noted above).