Finalize v1.16

This commit is contained in:
Evan Su 2021-08-11 23:02:29 -04:00 committed by GitHub
parent 4ad1af86e6
commit f6d70f4d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1026,6 +1026,9 @@ func work(){
status = "Recombining file..." status = "Recombining file..."
total := 0 total := 0
if strings.HasSuffix(inputFile,".pcv"){
inputFile = inputFile[:len(inputFile)-4]
}
for{ for{
_,err := os.Stat(fmt.Sprintf("%s.%d",inputFile+".pcv",total)) _,err := os.Stat(fmt.Sprintf("%s.%d",inputFile+".pcv",total))
if err!=nil{ if err!=nil{
@ -1324,7 +1327,6 @@ func work(){
if recombine{ if recombine{
os.Remove(inputFile) os.Remove(inputFile)
} }
os.Remove(outputFile)
return return
} }
} }