mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix host clean recycle bin
This commit is contained in:
@@ -345,7 +345,9 @@ func cleanDailyFiles(storagePath, subDir string, keepDay int) {
|
||||
if date.Before(markTime) {
|
||||
log.Infof("Real delete %s", file)
|
||||
subDirPath := path.Join(recycleDir, file.Name())
|
||||
procutils.NewCommand("rm", "-rf", subDirPath)
|
||||
if _, err := procutils.NewCommand("rm", "-rf", subDirPath).Run(); err != nil {
|
||||
log.Errorf("clean recycle dir %s error %s", subDirPath, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user