Skip to content

Commit

Permalink
🐛 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Mar 3, 2024
1 parent 577ffcd commit d9eb606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ def unzip_targz(input_file: str | Path, output_path: str | Path) -> List[str]:
"""解压 tar.gz 文件, 返回解压后的文件名称列表"""
unzip_files = []
try:
temp_path = input_file.rstrip(".gz")
temp_path = str(input_file).rstrip(".gz")
path = Path(input_file)
path2 = Path(output_path)
with gzip.open(path, 'rb') as f_in, open(temp_path, 'wb') as f_out:
Expand Down

0 comments on commit d9eb606

Please sign in to comment.