Skip to content

Commit

Permalink
dev(narugo): fix upload issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed Dec 24, 2023
1 parent ff694fb commit 5afd666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hfutils/operate/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list_files_in_repository(repo_id: str, repo_type: RepoTypeTyping = 'dataset'
]
except FileNotFoundError:
return []
_exist_ps = sorted([(file, file.split('/')) for file in _exist_files], key=lambda x: x[1])
_exist_ps = sorted([(file, file.split(os.sep)) for file in _exist_files], key=lambda x: x[1])
retval = []
for i, (file, segments) in enumerate(_exist_ps):
if i < len(_exist_ps) - 1 and segments == _exist_ps[i + 1][1][:len(segments)]:
Expand Down

0 comments on commit 5afd666

Please sign in to comment.