From f6d70f4d53c6d5f06921c6ff24b2a9242a9991d5 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Wed, 11 Aug 2021 23:02:29 -0400 Subject: [PATCH] Finalize v1.16 --- src/Picocrypt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Picocrypt.go b/src/Picocrypt.go index 4c4abf1..4c3cab5 100644 --- a/src/Picocrypt.go +++ b/src/Picocrypt.go @@ -1026,6 +1026,9 @@ func work(){ status = "Recombining file..." total := 0 + if strings.HasSuffix(inputFile,".pcv"){ + inputFile = inputFile[:len(inputFile)-4] + } for{ _,err := os.Stat(fmt.Sprintf("%s.%d",inputFile+".pcv",total)) if err!=nil{ @@ -1324,7 +1327,6 @@ func work(){ if recombine{ os.Remove(inputFile) } - os.Remove(outputFile) return } }