Skip to content

Commit fbd81e8

Browse files
committed
Removed chmod_and_chown method from linker task
1 parent ffb878a commit fbd81e8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

linker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def create_symlinks(ref):
6262
return
6363
if path_expr_alias := doc.get("experiment_alias_directory"):
6464
path_proposal = Path(f"/nsls2/data/cms/proposals/{doc['cycle']}/{doc['data_session']}")
65-
stats = path_proposal.stat()
65+
# stats = path_proposal.stat()
6666
path_expr = path_proposal / "experiments" # experiments directory
6767
path_expr.mkdir(exist_ok=True, parents=True)
6868
#chmod_and_chown(path_expr, uid=stats.st_uid, gid=stats.st_gid)
@@ -82,11 +82,11 @@ def create_symlinks(ref):
8282
subdir_analysis = "camera" if "webcam" in detname else f"{detname}/analysis"
8383
path_analysis = Path(path_expr_alias) / subdir_analysis
8484
path_analysis.mkdir(exist_ok=True, parents=True)
85-
chmod_and_chown(path_analysis, uid=stats.st_uid, gid=stats.st_gid)
86-
chmod_and_chown(path_analysis.parent, uid=stats.st_uid, gid=stats.st_gid)
85+
# chmod_and_chown(path_analysis, uid=stats.st_uid, gid=stats.st_gid)
86+
# chmod_and_chown(path_analysis.parent, uid=stats.st_uid, gid=stats.st_gid)
8787
path_data = Path(path_expr_alias) / 'data'
8888
path_data.mkdir(exist_ok=True, parents=True)
89-
chmod_and_chown(path_data, uid=stats.st_uid, gid=stats.st_gid)
89+
# chmod_and_chown(path_data, uid=stats.st_uid, gid=stats.st_gid)
9090
logger.info(f"Created analysis and data folders for {det}")
9191

9292
if 'TIFF' in doc['spec']:
@@ -107,7 +107,7 @@ def create_symlinks(ref):
107107
logger.info("Scan was run already")
108108
else:
109109
link_path.parent.mkdir(exist_ok=True, parents=True)
110-
chmod_and_chown(link_path.parent, uid=stats.st_uid, gid=stats.st_gid)
110+
# chmod_and_chown(link_path.parent, uid=stats.st_uid, gid=stats.st_gid)
111111
os.symlink(file_path, link_path)
112112
logger.info(f"Linked: {file_path} to {link_path}")
113113
break

0 commit comments

Comments
 (0)