prevent cache file info writing by default

This commit is contained in:
Radu Ioan Fericean
2016-07-18 21:47:50 +03:00
parent 8e4573cc66
commit 5c59792c16

View File

@@ -40,6 +40,9 @@ func LoadCacheFileInfo(path string) (*CacheFileInfo, error) {
}
func SaveCacheFileInfo(path string, cfi *CacheFileInfo) error {
if path == "" {
return nil
}
// open data file
// create a the path
if err := os.MkdirAll(path, 0766); err != nil {