You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ zipserver <command> --help # Show help for a specific command
56
56
|`extract`| Extract a zip file to storage | Source read, optional target write |
57
57
|`copy`| Copy a file to target storage | Source read, target write |
58
58
|`delete`| Delete files from storage | Target write |
59
-
|`list`| List files in a zip archive | Source read (or URL)|
59
+
|`list`| List files in a zip archive | Source read, URL, or local file|
60
60
|`slurp`| Download a URL and store it | Source write, or optional target write |
61
61
|`testzip`| Extract and serve a local zip file via HTTP for debugging | local only |
62
62
|`dump`| Dump parsed config and exit | n/a |
@@ -136,22 +136,29 @@ curl -X POST "http://localhost:8090/delete" \
136
136
137
137
## List
138
138
139
-
List files in a zip archive without extracting.
139
+
List files in a zip archive without extracting. Returns JSON with filenames and uncompressed sizes.
140
140
141
141
**CLI:**
142
142
```bash
143
-
# From storage
143
+
# From storage (uses efficient range requests - only reads zip metadata)
144
144
zipserver list --key zips/my_file.zip
145
145
146
-
# From URL
146
+
# From URL (downloads entire file)
147
147
zipserver list --url https://example.com/file.zip
148
+
149
+
# From local file
150
+
zipserver list --file ./local.zip
148
151
```
149
152
153
+
When using `--key`, zipserver uses HTTP range requests to read only the zip's central directory (typically < 1% of the file size). This significantly reduces bandwidth and storage operation costs for large zip files.
0 commit comments