Skip to content

Commit

Permalink
merge (#61866)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder authored Feb 21, 2024
1 parent 12e5c97 commit 39010bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/paddle/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ def _uncompress_file_tar(filepath, mode="r:*"):
file_list_tmp = files.getnames()
file_list = []
for file in file_list_tmp:
assert (
file[0] != "/"
), f"uncompress file path {file} should not start with /"
file_list.append(file.replace("../", ""))

file_dir = os.path.dirname(filepath)
Expand Down

0 comments on commit 39010bf

Please sign in to comment.