Skip to content

Commit

Permalink
repairing the zip file name when changing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Apr 11, 2024
1 parent e7946b3 commit ff1dd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/staging/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def final_staging(self, run_id: str, run_dir: str, staging_type: StagingType) ->
shutil.make_archive(nfs_archive_file, 'zip', run_dir)

# adjust the file properties of the archive to 775
os.chmod(nfs_archive_file, 0o775)
os.chmod(f'{nfs_archive_file}.zip', 0o775)

# remove all directories from the run (leaving the archive file)
[shutil.rmtree(data_dir, ignore_errors=True) for data_dir in glob.glob(f'{run_dir}/**/')]
Expand Down

0 comments on commit ff1dd60

Please sign in to comment.