-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-archiveArea - Microsoft.PowerShell.Archive moduleArea - Microsoft.PowerShell.Archive module
Description
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.
- ID: 1e67ee59-8a3e-59ad-7c8d-a78605f55b66
- Version Independent ID: 3c8b8ee9-6a97-4eda-d184-49e728abf0a6
- Content: Compress-Archive (Microsoft.PowerShell.Archive)
- Content Source: reference/6/Microsoft.PowerShell.Archive/Compress-Archive.md
- Product: powershell
- Technology: powershell-cmdlets
- GitHub Login: @anmenaga
- Microsoft Alias: anmenaga
Metadata
Metadata
Assignees
Labels
area-archiveArea - Microsoft.PowerShell.Archive moduleArea - Microsoft.PowerShell.Archive module