Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Compress-Archive' should support *.gz archive extension #22

Open
HemantMahawar opened this issue Oct 25, 2016 · 3 comments
Open

'Compress-Archive' should support *.gz archive extension #22

HemantMahawar opened this issue Oct 25, 2016 · 3 comments

Comments

@HemantMahawar
Copy link

From @MaximoTrinidad on October 3, 2016 15:44

Steps to reproduce

Ran Compress-Archive command to create a *.gz compress file.

Compress-Archive -Path /home/maxt/Documents -DestinationPath /home/maxt/MyArchives/Mycsvfiles.gz

Expected behavior

This cmdlet should allows to create a compress file of type *gz.

PS /home/maxt> Compress-Archive -Path /home/maxt/Documents -DestinationPath /home/maxt/MyArchives/Mycsvfiles.gz

Actual behavior

Cmdlet fails to create compress file *.gz giving following error message:

PS /home/maxt> Compress-Archive -Path /home/maxt/Documents -DestinationPath /home/maxt/MyArchives/Mycsvfiles.gz
Compress-Archive : .gz is not a supported archive file format. .zip is the only supported archive file format.
At line:1 char:1

  • Compress-Archive -Path /home/maxt/Documents -DestinationPath /home/ma ...
  • - CategoryInfo          : InvalidArgument: (.gz:String) [Compress-Archive], IOException
    - FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Compress-Archive
    
    

powershellcompressgzerror

Environment data

Linux: Ubuntu 16.04.1 LTS Desktop

PS C:\Program Files\PowerShell\6.0.0.10> $PSVersionTable

Name Value


PSVersion 6.0.0-alpha
WSManStackVersion 3.0
BuildVersion 3.0.0.0
PSRemotingProtocolVersion 2.3
CLRVersion
GitCommitId v6.0.0-alpha.10
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
SerializationVersion 1.1.0.1
PSEdition Core

Copied from original issue: PowerShell/PowerShell#2409

@HemantMahawar
Copy link
Author

From @SteveL-MSFT on October 7, 2016 16:50

Please open issue here: https://github.com/PowerShell/Microsoft.PowerShell.Archive/issues

@vors
Copy link
Contributor

vors commented Nov 20, 2016

There is request for a longer list of formats:
PowerShell/PowerShell#2740

.tar
.gz
.lzma / .7z
.bz2

@TravisEz13
Copy link
Member

FYI System.IO.Compression.GZipStream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants