Skip to content

Commit c9293b1

Browse files
committed
Forgot to include most nested directory in iterative 'os.chmod' run
1 parent 016f3c6 commit c9293b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/murfey/server/api/workflow_fib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def make_gif(
9999
logger.debug(f"Created output directory {output_dir}")
100100
visit_index = output_dir.parts.index(visit_name)
101101
# Change permissions for folders in the visit directory and onwards
102-
for current_path in list(reversed(output_dir.parents))[visit_index + 1 :]:
102+
for current_path in list(reversed(output_file.parents))[visit_index + 1 :]:
103103
try:
104104
os.chmod(current_path, mode=machine_config.mkdir_chmod)
105105
except PermissionError:

0 commit comments

Comments
 (0)