Skip to content

Commit

Permalink
Merge pull request #172 from AirportR/dev
Browse files Browse the repository at this point in the history
🐛 fix
  • Loading branch information
AirportR authored Mar 3, 2024
2 parents 837aed1 + d9eb606 commit 380984c
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 380984c

Please sign in to comment.