Refine the directories.

This commit is contained in:
zicla
2019-04-26 02:30:04 +08:00
parent 61b14fe82b
commit b3c52ea50e
40 changed files with 214 additions and 162 deletions

View File

@ -6,6 +6,7 @@ import (
"github.com/nu7hatch/gouuid"
"os"
"path/filepath"
"tank/rest/tool"
"time"
)
@ -151,7 +152,7 @@ func (this *ImageCacheDao) deleteFileAndDir(imageCache *ImageCache) {
}
//如果这一层文件夹是空的,那么删除文件夹本身。
DeleteEmptyDirRecursive(dirPath)
tool.DeleteEmptyDirRecursive(dirPath)
}