Actually, lets keep working instead of closing program if file cannot be deleted.
This commit is contained in:
parent
a0a80db606
commit
00b5b0c7d6
@ -83,7 +83,7 @@ func main() {
|
||||
for _, entry := range uploadsDir {
|
||||
if time.Now().UTC().Sub(entry.ModTime().UTC()) >= time.Duration(config.Uploads.Limits.KeepForHours)*time.Hour {
|
||||
if err := os.Remove(path.Join(config.Uploads.Directory, entry.Name())); err != nil {
|
||||
logErr.Fatalln("failed to remove file ", entry.Name(), ": ", err)
|
||||
logErr.Println("failed to remove file ", entry.Name(), ": ", err)
|
||||
}
|
||||
deletedSize += entry.Size()
|
||||
deletedCount++
|
||||
|
Loading…
Reference in New Issue
Block a user