auto create non-existing cache directory
fix https://github.com/chrislusf/seaweedfs/issues/1350
This commit is contained in:
@@ -49,6 +49,10 @@ func CheckFile(filename string) (exists, canRead, canWrite bool, modTime time.Ti
|
||||
exists = false
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
glog.Errorf("check %s: %v", filename, err)
|
||||
return
|
||||
}
|
||||
if fi.Mode()&0400 != 0 {
|
||||
canRead = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user