Skip to content

Commit

Permalink
debugging empty zip
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Oct 24, 2024
1 parent c2266fe commit fecf9ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions csd3-side/scripts/lsst-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def zip_and_upload(s3_host, access_key, secret_key, bucket_name, destination_dir
# zips now placed at top level of backup == local_dir
zip_object_key = os.sep.join([destination_dir, os.path.relpath(f'{local_dir}/collated_{id}.zip', local_dir)])
print(f'zip_object_key: {zip_object_key}', flush=True)
print(namelist, flush=True)
if namelist == []:
print(f'No files to upload in zip file.')
return zip_object_key+' nothing to upload'
Expand Down

0 comments on commit fecf9ca

Please sign in to comment.