Skip to content

Commit

Permalink
Only strip object name when joining paths
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Nov 29, 2023
1 parent f8ee914 commit 02cead1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llmfoundry/utils/data_prep_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def __init__(

def __iter__(self):
for object_name in self.object_names:
object_name = object_name.strip('/')
output_filename = os.path.join(self.output_folder, object_name)
output_filename = os.path.join(self.output_folder,
object_name.strip('/'))
if self.object_store is not None:
self.object_store.download_object(object_name=object_name,
filename=output_filename,
Expand Down

0 comments on commit 02cead1

Please sign in to comment.