Skip to content

Commit

Permalink
fix(io): need to rename file when decompressing it on windows (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrab13 committed Nov 9, 2023
1 parent 64347a3 commit 676df06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pdbstore/io/cab.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def _decompress_expand(src_path: PathLike, dest_dir: PathLike) -> None:
"""
args = [
"expand.exe",
"-R",
os.fspath(src_path),
os.fspath(dest_dir),
]
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_cab.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def test_decompress_not_supported_per_platform(_which, platform):
pdbstore.io.cab._decompress_expand,
[
"expand.exe",
"-R",
"/usr/input/file.pd_",
"/usr/output",
],
Expand Down Expand Up @@ -280,6 +281,7 @@ def test_decompress_invocation_success(_which, fake_process, test_args):
pdbstore.io.cab._decompress_expand,
[
"expand.exe",
"-R",
"/usr/input/file.pd_",
"/usr/output",
],
Expand Down

0 comments on commit 676df06

Please sign in to comment.