From c869e0dd713d05012cc21e0f2eb75120af22fa40 Mon Sep 17 00:00:00 2001 From: SkippyNet <72524237+SkippyNet@users.noreply.github.com> Date: Thu, 12 Nov 2026 23:29:31 -0500 Subject: [PATCH] SpaceScope 1.1.1: Apache 2.0, releases on the website, comparison - Licence changed from MIT to Apache 2.0, with a NOTICE file. - Website: release list from GitHub, OS-aware downloads, search metadata, sitemap, and an explanation of how the scanner differs. - README: badges, download links, comparison section. Co-Authored-By: Claude --- CHANGELOG.md | 12 +- Cargo.lock | 4 +- Cargo.toml | 4 +- LICENSE | 223 ++++++++++++++++++++++++++++++++---- NOTICE | 10 ++ README.md | 54 ++++++++- docs/.nojekyll | 0 docs/index.html | 178 ++++++++++++++++++++++++---- docs/robots.txt | 3 + docs/sitemap.xml | 4 + scripts/package-windows.ps1 | 2 +- 11 files changed, 437 insertions(+), 57 deletions(-) create mode 100644 NOTICE create mode 100644 docs/.nojekyll create mode 100644 docs/robots.txt create mode 100644 docs/sitemap.xml diff --git a/CHANGELOG.md b/CHANGELOG.md index 9930175..51d57a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ by setting `version` in `Cargo.toml`, adding a section here, and pushing a matching `vX.Y.Z` tag; CI checks the three agree, builds both platforms and publishes the release. +## 1.1.1 + +- Licence changed from MIT to the Apache License 2.0, which adds an explicit + patent grant and contribution terms. Version 1.1.0 remains under MIT. +- The website lists every release with its notes, downloads and sizes, and + offers the download for your own system first. +- README and website explain how the scanner differs from walking the disk + folder by folder. +- The Windows zip includes the licence and NOTICE files. + ## 1.1.0 - Windows: when run as administrator, drives and their top-level folders are @@ -21,6 +31,6 @@ publishes the release. ## 1.0.0 -- First release: parallel scanner for Windows and Linux, live treemap with +- Internal first version, not published: parallel scanner for Windows and Linux, live treemap with animated zoom, filters, on-disk and logical sizes, free-space tile, file actions, CSV export, dark and light themes, `sscan` command-line tool. diff --git a/Cargo.lock b/Cargo.lock index f6f6a6c..546d212 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2840,7 +2840,7 @@ dependencies = [ [[package]] name = "spacescope" -version = "1.1.0" +version = "1.1.1" dependencies = [ "chrono", "eframe", @@ -2861,7 +2861,7 @@ dependencies = [ [[package]] name = "spacescope-core" -version = "1.1.0" +version = "1.1.1" dependencies = [ "crossbeam-deque", "libc", diff --git a/Cargo.toml b/Cargo.toml index d5e4098..9d88c40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,9 +3,9 @@ resolver = "2" members = ["crates/core", "crates/app"] [workspace.package] -version = "1.1.0" +version = "1.1.1" edition = "2021" -license = "MIT" +license = "Apache-2.0" authors = ["SkippyNet"] rust-version = "1.87" diff --git a/LICENSE b/LICENSE index a96d2fa..d645695 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,202 @@ -MIT License - -Copyright (c) 2026 SkippyNet - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..0f37c1a --- /dev/null +++ b/NOTICE @@ -0,0 +1,10 @@ +SpaceScope +Copyright 2026 SkippyNet + +This product is licensed under the Apache License, Version 2.0 (see LICENSE). + +It is built with open-source Rust crates, each under its own licence, among +them egui and eframe (MIT OR Apache-2.0), notify (CC0-1.0), parking_lot and +crossbeam (MIT OR Apache-2.0), rfd (MIT), trash (MIT), chrono (MIT OR +Apache-2.0), image (MIT OR Apache-2.0) and windows-sys (MIT OR Apache-2.0). +Run `cargo tree` for the complete list. diff --git a/README.md b/README.md index d78dab3..628c870 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,21 @@ # SpaceScope -A fast disk-space treemap for Windows 10+ and Debian/Ubuntu, written in Rust. -It is a from-scratch take on the idea behind SpaceSniffer: scan a drive or -folder, and see every file and folder as a rectangle sized by the space it uses. +[![CI](https://github.com/SkippyNet/spacescope/actions/workflows/ci.yml/badge.svg)](https://github.com/SkippyNet/spacescope/actions/workflows/ci.yml) +[![Latest release](https://img.shields.io/github/v/release/SkippyNet/spacescope?label=release)](https://github.com/SkippyNet/spacescope/releases/latest) +[![Downloads](https://img.shields.io/github/downloads/SkippyNet/spacescope/total?label=downloads)](https://github.com/SkippyNet/spacescope/releases) +[![Licence](https://img.shields.io/badge/licence-Apache--2.0-blue)](LICENSE) +[![Platforms](https://img.shields.io/badge/platforms-Windows%2010%2B%20%7C%20Debian%20%7C%20Ubuntu-informational)](#install) +[![Built with Rust](https://img.shields.io/badge/built%20with-Rust-orange)](https://www.rust-lang.org) + +**See what is filling your disk.** SpaceScope is a fast, free disk-space +analyzer for Windows 10+ and Debian/Ubuntu. It scans a drive or folder and +draws every file and folder as a rectangle sized by the space it uses (a +treemap), so the biggest things are the biggest shapes. + +**[Download](https://github.com/SkippyNet/spacescope/releases/latest)** · +**[Website](https://skippynet.github.io/spacescope/)** · +**[All releases](https://github.com/SkippyNet/spacescope/releases)** · +**[Changelog](CHANGELOG.md)** ![SpaceScope showing a folder as a treemap](docs/screenshot.png) @@ -127,6 +140,37 @@ spacescope some/folder --size 1200x760 \ --script "dbl:0.6,0.2;shot:zoomed.png;key:Backspace;rclick:0.2,0.5;shot:menu.png" ``` -## License +## How it compares -MIT. The name and the idea of a live treemap owe a debt to SpaceSniffer by Uderzo Software; no code is shared with it. +The live treemap as a way to explore a disk was made popular on Windows by +[SpaceSniffer](http://www.uderzo.it/main_products/space_sniffer/) from Uderzo +Software, a freeware, closed-source, Windows-only tool, and that idea is the +starting point here. SpaceScope shares no code with it and takes a different +route technically: + +| | SpaceScope | Conventional folder-walking analyzers | +|---|---|---| +| **How a drive is read** | As administrator, one sequential read of the NTFS master file table: 2.4 s for 1.3 million files. Otherwise one system call per *folder*. | One or more system calls per folder, often one per *file*. Time grows with the number of folders and with disk seeks. | +| **Cold cache** | The file table is one contiguous read, so a first scan after reboot costs the same as any other. | Every folder is a separate disk access; the first scan can take many times longer. | +| **Permissions** | The file-table scan sees every file, so nothing is reported as unreadable. | Protected folders are skipped unless every one can be opened. | +| **Hard links** | Counted once (Linux, and the file-table scan on Windows). | Usually counted once per link, inflating folders like `WinSxS`. | +| **Real size on disk** | Compressed, sparse and cloud-placeholder files are shown at the space they actually occupy; alternate data streams and folder indexes are included in the file-table scan. | Often the nominal file size only. | +| **Staying current** | Changed folders are re-read individually and merged in place; folders keep their position and identity. | A rescan of the subtree, or of everything. | +| **Rendering** | One GPU draw call for the whole map; layout and filtering on background threads. | Commonly drawn rectangle by rectangle on the UI thread. | +| **Memory** | 48 bytes per file plus its name: about 260 MB for a 1.3-million-file drive. | Varies; often an object per file. | +| **Platforms** | Windows 10+, Debian, Ubuntu (X11 and Wayland). | Typically Windows only. | +| **Source** | Open, Apache 2.0. | Varies. | + +The right-hand column describes the general approach, not a measurement of +any one product; SpaceScope has not been benchmarked head-to-head against +other tools. What other tools have that SpaceScope does not (yet): colour +tags on files and customisable export templates. + +## Licence + +Copyright 2026 SkippyNet. Licensed under the +[Apache License, Version 2.0](LICENSE): you may use, modify and redistribute +SpaceScope, including commercially, provided you keep the licence and +[NOTICE](NOTICE) with it and state significant changes. The licence includes +an express patent grant from contributors and comes with no warranty. +Contributions are accepted under the same terms. diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/index.html b/docs/index.html index ddd39e0..3de9e0b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,8 +3,38 @@ -SpaceScope: see what is filling your disk - +SpaceScope: free disk space analyzer for Windows and Linux + + + + + + + + + + + + + + + + @@ -127,6 +157,23 @@ .install p { margin: 0 0 10px; color: var(--ink-soft); } pre { margin: 0; background: var(--ink); color: #e9ecf1; padding: 14px 16px; overflow-x: auto; font: 500 .92rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; } + .intro { max-width: 72ch; margin: 0 0 22px; } + .ver { margin: 14px 0 0; font-size: .95rem; } + .cmp { overflow-x: auto; } + .cmp table { max-width: none; min-width: 640px; } + .cmp th, .cmp td { vertical-align: top; padding: 12px 22px 12px 0; } + .cmp tbody th { font-weight: 700; color: var(--ink); width: 17%; } + .cmp td:nth-child(2) { width: 46%; } + .cmp td:nth-child(3) { color: var(--ink-soft); } + .cmp thead th:nth-child(2) { color: var(--ink); font-weight: 700; } + .rel { padding: 22px 0; border-top: 2px solid var(--frame); max-width: 820px; } + .rel h3 { margin: 0; font-size: 1.35rem; font-weight: 700; } + .rel .tag { margin-left: 10px; padding: 2px 8px; background: var(--green); font-size: .8rem; font-weight: 600; vertical-align: middle; } + .rel .when { margin: 2px 0 10px; color: var(--ink-soft); font-size: .95rem; } + .rel ul { margin: 0 0 4px; padding-left: 20px; } + .rel li { margin: 4px 0; } + .rel .actions { margin-top: 14px; } + footer a { text-underline-offset: 3px; } footer { margin-top: 84px; padding: 26px 0 40px; border-top: 2px solid var(--frame); color: var(--ink-soft); font-size: .95rem; } @media (max-width: 860px) { @@ -143,7 +190,8 @@
SpaceScope
@@ -155,9 +203,10 @@

See what is filling your disk

SpaceScope scans a drive or folder and draws every file as a rectangle sized by the space it takes. The biggest things are the biggest shapes.

+

Free. No sign-up, no installer on Windows.

@@ -181,12 +230,12 @@

Debian and Ubuntu

X11 and Wayland.

-

Free and open

-

MIT licence, written in Rust.

+

Free and open source

+

Apache 2.0 licence, written in Rust.

-

Releases

-

All versions and notes

+

Every version

+

Releases and what changed

@@ -196,22 +245,28 @@

What you get

Colour is the kind of file. Double-click a folder to zoom in, right-click for open, show in file manager, copy path and move to trash.

-
-

Why it is quick

-
-
-

It asks the disk once

-

Run as administrator on Windows and SpaceScope reads the NTFS master file table in one pass instead of opening every folder. Without admin rights it still gets a whole folder's sizes in a single system call.

-
-
-

It only draws what you can see

-

Folders too small to read stay closed and tiny files merge into one tile, so a million files become a few thousand rectangles, drawn in one batch.

-
-
-

It never blocks the window

-

Scanning, filtering and layout run on their own threads. You can zoom around while the scan is still going.

-
+
+

How it works, and why that is faster

+

Exploring a disk as a live treemap was made popular on Windows by SpaceSniffer from Uderzo Software, and that idea is the starting point here. SpaceScope shares no code with it and is built differently underneath. Most disk analyzers walk the disk folder by folder; this is what SpaceScope does instead.

+
+ + + + + + + + + + + + + + + +
SpaceScopeWalking folder by folder
Reading a driveAs administrator, one straight read of the NTFS master file table, the index Windows itself keeps of every file. 1.3 million files in 2.4 s.Open each folder and ask for its content, hundreds of thousands of times. Time grows with the number of folders.
Without admin rightsOne system call returns names and sizes for a whole folder, spread over a pool of threads.Often a separate call for every file.
First scan after a rebootThe file table is one continuous read, so it costs the same every time.Every folder is its own trip to the disk; a cold scan can take many times longer.
Protected foldersThe file-table scan sees every file. Nothing is left out as unreadable.Skipped unless each one can be opened.
Hard linksCounted once.Usually counted once per link, which inflates folders such as WinSxS.
Size on diskCompressed, sparse and cloud-only files appear at the space they really occupy.Often the nominal size only.
Keeping up with changesOnly the folders that changed are re-read and merged in place. Everything else stays where it was.Rescan the folder tree, or all of it.
DrawingThe whole map is one batch on the graphics card. Layout and filtering run on background threads, so the window never waits.Commonly drawn rectangle by rectangle on the same thread as the window.
Memory48 bytes per file plus its name: about 260 MB for a 1.3-million-file drive.Varies, often a full object per file.
Where it runsWindows 10 and 11, Debian, Ubuntu.Typically Windows only.
Source codeOpen, under the Apache 2.0 licence.Varies.
+

The right-hand column describes the usual approach, not a measurement of any one product: SpaceScope has not been raced against other tools. Two things others offer that SpaceScope does not yet: colour tags on files, and customisable export templates.

@@ -244,11 +299,84 @@

Debian and Ubuntu

+ +
+

Releases

+

Every version, newest first, with what changed and its downloads.

+ +
+ diff --git a/docs/robots.txt b/docs/robots.txt new file mode 100644 index 0000000..f54948a --- /dev/null +++ b/docs/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: https://skippynet.github.io/spacescope/sitemap.xml diff --git a/docs/sitemap.xml b/docs/sitemap.xml new file mode 100644 index 0000000..5794f07 --- /dev/null +++ b/docs/sitemap.xml @@ -0,0 +1,4 @@ + + + https://skippynet.github.io/spacescope/weekly + diff --git a/scripts/package-windows.ps1 b/scripts/package-windows.ps1 index e7de092..3f70d40 100644 --- a/scripts/package-windows.ps1 +++ b/scripts/package-windows.ps1 @@ -6,7 +6,7 @@ if ($LASTEXITCODE -ne 0) { throw "build failed" } $stage = "dist\SpaceScope-windows-x64" Remove-Item $stage -Recurse -Force -ErrorAction SilentlyContinue New-Item -ItemType Directory -Force $stage | Out-Null -Copy-Item target\release\spacescope.exe, target\release\sscan.exe, README.md, CHANGELOG.md, LICENSE $stage +Copy-Item target\release\spacescope.exe, target\release\sscan.exe, README.md, CHANGELOG.md, LICENSE, NOTICE $stage Compress-Archive -Path "$stage\*" -DestinationPath "$stage.zip" -Force Remove-Item $stage -Recurse -Force Get-Item "$stage.zip" | Select-Object Name, Length