Skip to content

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

Open
@lzybkr

Description

@lzybkr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions