Skip to content
Snippets Groups Projects
Commit af813356 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Create /data/user /data/scratch dirs if they don't exist

If they already exist then it would just ignore.
parent 80e4ffb9
No related tags found
3 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!49Create /data/user /data/scratch dirs if they don't exist
......@@ -31,7 +31,7 @@ def dir_verify(ch, method, properties, body):
else:
if not path.exists():
# Make sure folder exists and with right permission
path.mkdir(mode=0o700)
path.mkdir(mode=0o700, parents=True, exist_ok=True)
# Make sure ownership is correct
shutil.chown(path, int(msg['uid']), int(msg['gid']))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment