From 116b2351b046bf186d6ab68370896083ccf885fe Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 23 Jan 2021 19:25:25 +0100 Subject: [PATCH] mention howto purge partial uploads --- README.md | 1 + docs/notes.sh | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 06643bde..0d367598 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docs/notes.sh b/docs/notes.sh index 9a62fc17..9493ec94 100644 --- a/docs/notes.sh +++ b/docs/notes.sh @@ -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