Skip to content

Structured archives, -Path parameter and piping #5008

@rendmath

Description

@rendmath

It would be useful to specify under which conditions the files are "flattened" at the root of the archive vs. an archive with a directory structure inside. According to my tests, a structured archive is created only when the -Path parameter is used with a folder or wildcard path. I couldn't find a way to get a structured archive through piping.

Ideally, the cmdlet should take a -RootPath parameter to resolve the path of each file inside the archive, thereby allowing the creation of structured archives from a pipeline.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-archiveArea - Microsoft.PowerShell.Archive module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions