Skip to content
Snippets Groups Projects

WIP: Added script in dir_verify agent to create dir

1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -23,6 +23,14 @@ def dir_verify(ch, method, properties, body):
@@ -23,6 +23,14 @@ def dir_verify(ch, method, properties, body):
msg["success"] = True
msg["success"] = True
missing_dirs = []
missing_dirs = []
 
 
access = 0o777
 
parent_user_dir = "/data/user"
 
path = os.path.join(parent_user_dir, username )
 
os.mkdir(path, access)
 
parent_scratch_dir = "/data/scratch"
 
path = os.path.join(parent_scratch_dir, username )
 
os.mkdir(path, access)
try:
try:
for d in dirs:
for d in dirs:
Loading