Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Nov 22, 2023
1 parent 00cd03b commit 4b1271c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions faassupervisor/storage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def upload_output(self, output_dir_path):
provider_type = StrUtils.get_storage_type(output['storage_provider'])
provider_id = StrUtils.get_storage_id(output['storage_provider'])
for file_path in output_files:
# Make sure the file name does not contain new lines or starting slashes
file_name = file_path.replace(f'{output_dir_path}/', '').strip().lstrip('/')
prefix_ok = False
suffix_ok = False
Expand Down

0 comments on commit 4b1271c

Please sign in to comment.