Compare commits

..

2 Commits

Author SHA1 Message Date
fd99333bc1 Merge branch 'main' of https://git.rouggy.com/rouggy/DeleteArr 2023-12-18 09:15:20 +07:00
42aad9a4f3 update 2023-12-18 09:15:09 +07:00

View File

@ -168,7 +168,7 @@ func main() {
mkvCount += 1
} else {
os.Remove(m.SourceFolder + "/" + v.Name())
log.Printf("Deleting file non MKV file: %v", m.SourceFolder+"/"+v.Name())
log.Printf("Deleting non MKV file: %v", m.SourceFolder+"/"+v.Name())
}
}
@ -176,7 +176,7 @@ func main() {
log.Printf("Found %v MKV files in the folder, deleting only %v", mkvCount, m.SourcePath)
os.Remove(m.SourcePath)
} else {
log.Printf("Found only one MKV files in the folder, deleting thoe folder %v", m.SourceFolder)
log.Printf("Found only one MKV files in the folder, deleting the folder %v", m.SourceFolder)
os.RemoveAll(m.SourceFolder)
}