Skip to content

Commit c659eef

Browse files
committed
Remove leading /
1 parent 0bc6463 commit c659eef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/jpl.labcas.zipper.data/src/jpl/labcas/zipper/data

src/jpl.labcas.zipper.data/src/jpl/labcas/zipper/data/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def do_create_zip(uuid, output_dir, to_email, files, from_addr, url):
9090
archive_name = file[archive_index:]
9191
else:
9292
# Fallback to just the filename if no 'archive/' found
93-
archive_name = os.path.basename(file)
93+
archive_name = os.path.basename(file)[1:] # Remove the leading '/'
9494
if os.path.isfile(file):
9595
_logger.info('🤐 Adding file %s to zip archive', file)
9696
zipf.write(file, archive_name)

0 commit comments

Comments
 (0)