Update DeleteArr.go

This commit is contained in:
Gregory Salaun 2024-01-12 09:57:16 +07:00
parent 12c539663b
commit 63269ff6bc

View File

@ -166,6 +166,10 @@ func main() {
log.Println("Found file: " + v.Name())
if filepath.Ext(v.Name()) == ".mkv" {
mkvCount += 1
} else if {
if filepath.Ext(v.Name()) == "sample.mkv" {
os.Remove(m.SourceFolder + "/" + v.Name())
}
} else {
os.Remove(m.SourceFolder + "/" + v.Name())
log.Printf("Deleting non MKV file: %v", m.SourceFolder+"/"+v.Name())