1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-12 03:50:33 +02:00

add back mkdir

This commit is contained in:
chrislu 2022-02-16 01:09:21 -08:00
parent 37e8fce841
commit 65bfeafb5a
2 changed files with 2 additions and 0 deletions

View file

@ -302,6 +302,7 @@ func (wfs *WFS) getCurrentFiler() pb.ServerAddress {
func (option *Option) setupUniqueCacheDirectory() {
cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)
os.MkdirAll(option.uniqueCacheDir, os.FileMode(0777)&^option.Umask)
}
func (option *Option) getUniqueCacheDir() string {

View file

@ -176,6 +176,7 @@ func (wfs *WFS) getCurrentFiler() pb.ServerAddress {
func (option *Option) setupUniqueCacheDirectory() {
cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)
os.MkdirAll(option.uniqueCacheDir, os.FileMode(0777)&^option.Umask)
}
func (option *Option) getUniqueCacheDir() string {