From 3f99abb502d373cb4b520b212afd4be9ed4da07f Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 26 Feb 2023 14:48:15 +0600 Subject: Feat: use md5 hash to save on space with shorter names --- workers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'workers.go') diff --git a/workers.go b/workers.go index 91f9eaf..4255e33 100644 --- a/workers.go +++ b/workers.go @@ -28,6 +28,7 @@ func cutterQueue(fQueue chan string, workerID int) { return } fpath := <-fQueue - cutOnEqualParts(fpath, segmentSize) + outname := fpathToOutname(fpath) + cutOnEqualParts(fpath, outname, segmentSize) } } -- cgit v1.2.3