{"id":19405320,"url":"https://github.com/max-ieremenko/zipasfolder","last_synced_at":"2025-10-08T17:20:17.169Z","repository":{"id":60719134,"uuid":"544935930","full_name":"max-ieremenko/ZipAsFolder","owner":"max-ieremenko","description":"PowerShell FileSystem provider lets you get, add, change, clear, and delete files and directories in zip archives.","archived":false,"fork":false,"pushed_at":"2024-04-13T14:26:19.000Z","size":118,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-25T00:46:07.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-ieremenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-03T13:50:07.000Z","updated_at":"2023-02-16T21:51:25.000Z","dependencies_parsed_at":"2024-11-10T11:38:08.482Z","dependency_job_id":"c54f20cd-ecc7-4bdd-b242-35ac0d281f04","html_url":"https://github.com/max-ieremenko/ZipAsFolder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/max-ieremenko/ZipAsFolder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-ieremenko%2FZipAsFolder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-ieremenko%2FZipAsFolder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-ieremenko%2FZipAsFolder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-ieremenko%2FZipAsFolder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-ieremenko","download_url":"https://codeload.github.com/max-ieremenko/ZipAsFolder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-ieremenko%2FZipAsFolder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278981557,"owners_count":26079650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T11:37:45.414Z","updated_at":"2025-10-08T17:20:17.120Z","avatar_url":"https://github.com/max-ieremenko.png","language":"C#","readme":"# ZipAsFolder\n\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/ZipAsFolder.svg?style=flat-square)](https://www.powershellgallery.com/packages/ZipAsFolder)\n\nZipAsFolder is a PowerShell FileSystem provider lets you get, add, change, clear, and delete files and directories in zip archives.\n\n```powershell\nPS\u003e Install-Module -Name ZipAsFolder\nPS\u003e Import-Module ZipAsFolder\n```\n\nAfter installation new `zf` PSDrive is available. On Windows the Root is empty, on Linux the Root is `/`.\n\n```powershell\nPS\u003e Get-PSDrive\n\nName Provider     Root\n---- --------     ----\nzf   ZipAsFolder  /\n```\n\n## Usage\n\nUsage is simple: just add `zf:` at the beginning of the path, like this \"c:\\my\\path\" =\u003e \"zf:c:\\my\\path\" on windows or \"/my/path\" =\u003e \"zf:/my/path\" on linux.\n\n```powershell\n# create a new empty zip archive file\nPS\u003e New-Item zf:/archive.zip\n\n# add a text file into the archive\nPS\u003e Set-Content zf:/archive.zip/file.txt \"hello from ZipAsFolder\"\n\n# add an empty directory into the archive\nPS\u003e New-Item zf:/archive.zip/directory -ItemType Directory\n\n# create another text file\nPS\u003e Get-Content zf:/archive.zip/file.txt -Raw | Set-Content zf:/archive.zip/directory/file.txt\n\n# show content\nPS\u003e Get-ChildItem zf:/archive.zip #-Recurse\n\n# create an empty directory\nPS\u003e New-Item zf:/extracted -ItemType Directory\n\n# expand the archive\nPS\u003e Copy-Item zf:/archive.zip/* zf:/extracted -Recurse\n\n# remove \"directory\" from the archive\nPS\u003e Remove-Item zf:/archive.zip/directory -Recurse\n\n# remove the archive\nPS\u003e Remove-Item zf:/archive.zip -Recurse\n\n# compress the content of extracted\nPS\u003e New-Item zf:/archive.zip\nPS\u003e Copy-Item zf:/extracted/* zf:/archive.zip -Recurse\n```\n\n\u003e ### Note\n\u003e on widows relative path works well\n\u003e ```powershell\n\u003e PS\u003e cd c:\\my\\path\n\u003e PS\u003e Get-ChildItem zf:.\\ # the content of c:\\my\\path\n\u003e ```\n\u003e on linux the path must be fully qualified\n\u003e ```powershell\n\u003e PS\u003e cd /my/path\n\u003e PS\u003e Get-ChildItem zf:./ # the content of the root /\n\u003e PS\u003e Get-ChildItem zf:/my/path # the content of /my/path\n\u003e ```\n\n## Customization\n\nshow the configuration\n\n```powershell\nPS\u003e $ZipAsFolder\n\nZipExtensions  CompressionLevel\n-------------  ----------------\n{.zip, .nupkg}          Optimal\n```\n\nZipAsFolder recognizes a file as an archive by its extension, by default `.zip` and `.nupkg`.\n\nTo add `.docx` into the list, just change the configuration\n\n```powershell\nPS\u003e $ZipAsFolder.ZipExtensions += \".docx\"\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-ieremenko%2Fzipasfolder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-ieremenko%2Fzipasfolder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-ieremenko%2Fzipasfolder/lists"}