Skip to content

Compress-Archive should have a -SkipBaseDirectory switch #43

@Jaykul

Description

@Jaykul

When I run

Compress-Archive $pwd -Destination ..\Compressed.zip

I always get a (redundant) single top-level folder in the zip

We need an option to not create that top level folder.

Note that this does not work:

Get-ChildItem $pwd | Compress-Archive -Destination ..\Compressed.zip

Because the resulting zip will be missing any empty subfolders of $pwd

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions