mention howto purge partial uploads

This commit is contained in:
ed 2021-01-23 19:25:25 +01:00
parent 69b83dfdc4
commit 116b2351b0
2 changed files with 9 additions and 0 deletions

View file

@ -142,6 +142,7 @@ roughly sorted by priority
* terminate client on bad data
* drop onto folders
* `os.copy_file_range` for up2k cloning
* up2k partials ui
* support pillow-simd
* cache sha512 chunks on client
* comment field

View file

@ -3,6 +3,14 @@ echo not a script
exit 1
##
## delete all partial uploads
## (supports linux/macos, probably windows+msys2)
gzip -d < .hist/up2k.snap | jq -r '.[].tnam' | while IFS= read -r f; do rm -f -- "$f"; done
gzip -d < .hist/up2k.snap | jq -r '.[].name' | while IFS= read -r f; do wc -c -- "$f" | grep -qiE '^[^0-9a-z]*0' & rm -f -- "$f"; done
##
## create a test payload