-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1
More file actions
26 lines (24 loc) · 599 Bytes
/
1
File metadata and controls
26 lines (24 loc) · 599 Bytes
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
26
import os
import json
file=open("server.conf","r+")
data=json.load(file)
#server on
#for (root,dirs,files) in os.walk('apps'):
# for name in dirs:
# print(name)
#print (root)
# print (dirs)
#print (files)
#print ('--------------------------------')
#for x in os.walk('.apps'):
# print(x[0])
contextNames=os.listdir('apps')
print(contextNames[0])
for root,dirs,files in os.walk('./apps/'+contextNames[0]):
print("Directories ",dirs)
if dirs["private"]==true:
print("private he")
print("Files ",files)
for dir in dirs:
if dir=='private':
print("hello")