Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Unexpected behavior with dir *.zip | Expand-Archive #41

Open
lzybkr opened this issue Aug 16, 2017 · 0 comments
Open

Unexpected behavior with dir *.zip | Expand-Archive #41

lzybkr opened this issue Aug 16, 2017 · 0 comments

Comments

@lzybkr
Copy link
Member

lzybkr commented Aug 16, 2017

When expanding multiple zip files via the pipeline, a deep hierarchy is created

Repro:

mkdir x
"" > x\a
'a','b','c' | % { Compress-Archive -Path .\x -DestinationPath ".\${_}.zip"}
dir *.zip | Expand-Archive
dir a
dir a\b
dir a\b\c

Expected:

Tree like:

d:.
|--a
|--|--x
|--b
|--|--x
|--c
|--|--x
|--x

Actual:

d:.
|--a
|--|--b
|--|--|--c
|--|--|--|--x
|--|--|--x
|--|--x
|--x
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants