-
Notifications
You must be signed in to change notification settings - Fork 0
/
folder.py
25 lines (21 loc) · 1.02 KB
/
folder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Folder:
def __init__(self, name, parent_dir=None):
self.name = name
self.parent_dir = parent_dir
self.dir = []
self.files = []
'''
elif input_split[0].lower() == "makedir" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))
elif input_split[0].lower() == "listdir" and len(input_split) == 1:
print(fileSystem.dir_content())
elif input_split[0].lower() == "deletedir" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))
elif input_split[0].lower() == "changedir" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))
elif input_split[0].lower() == "makefile" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))
elif input_split[0].lower() == "deletefile" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))
elif input_split[0].lower() == "movefile" and len(input_split) == 2:
print(fileSystem.new_dir(input_split[1]))'''