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
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
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
Minimum PowerShell version
7.0
Installation Options
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
Dependencies
This module has no dependencies.
Release Notes
https://github.com/max-ieremenko/ZipAsFolder/releases/tag/1.0.0
FileList
- ZipAsFolder.nuspec
- ZipAsFolder.Suite.deps.json
- LICENSE
- ZipAsFolder.Archive.Zip.deps.json
- ZipAsFolder.dll
- ZipAsFolder.IO.Abstractions.dll
- ZipAsFolder.IO.FileSystem.deps.json
- ZipAsFolder.psd1
- ZipAsFolder.Shared.deps.json
- ZipAsFolder.Suite.dll
- ZipAsFolder.Archive.Abstractions.deps.json
- ZipAsFolder.Archive.Zip.dll
- ZipAsFolder.Format.ps1xml
- ZipAsFolder.IO.Archive.deps.json
- ZipAsFolder.IO.FileSystem.dll
- ZipAsFolder.psm1
- ZipAsFolder.Shared.dll
- ZipAsFolder.Archive.Abstractions.dll
- ZipAsFolder.deps.json
- ZipAsFolder.IO.Abstractions.deps.json
- ZipAsFolder.IO.Archive.dll
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 (current version) | 145 | 4/13/2024 |
0.0.1 | 251 | 10/3/2022 |