ZipAsFolder

1.0.0

ZipAsFolder is a PowerShell FileSystem provider lets you get, add, change, clear, and delete files and directories in zip archives.

Example
   New-Item zf:/archive.zip # new empty zip archive
   Set-Content zf:/archive.zip/file.txt "hello from zf" # add a text file into the archive
   New-Item zf:/archive.zip/directory -ItemType Directory # add a directory in
ZipAsFolder is a PowerShell FileSystem provider lets you get, add, change, clear, and delete files and directories in zip archives.

Example
   New-Item zf:/archive.zip # new empty zip archive
   Set-Content zf:/archive.zip/file.txt "hello from zf" # add a text file into the archive
   New-Item zf:/archive.zip/directory -ItemType Directory # add a directory into the archive
   Get-Content zf:/archive.zip/file.txt -Raw | Set-Content zf:/archive.zip/directory/file.txt
   Get-ChildItem zf:/archive.zip # list items of the archive
   New-Item zf:/extracted -ItemType Directory # new empty directory
   Copy-Item zf:/archive.zip/* zf:/extracted -Recurse # expand the archive
   Remove-Item zf:/archive.zip/directory -Recurse # remove a directory from the archive
   Remove-Item zf:/archive.zip -Recurse # remove the archive
   New-Item zf:/archive.zip
   Copy-Item zf:/extracted/* zf:/archive.zip -Recurse # compress
Show more

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name ZipAsFolder

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name ZipAsFolder

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(C) 2022-2024 Max Ieremenko, licensed under MIT License

Package Details

Author(s)

  • Max Ieremenko

Tags

zip archive extract compress Windows Linux macOS

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

https://github.com/max-ieremenko/ZipAsFolder/releases/tag/1.0.0

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 145 4/13/2024
0.0.1 251 10/3/2022