diff options
Diffstat (limited to 'weed/command/mount_std.go')
| -rw-r--r-- | weed/command/mount_std.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index b6715fc30..915754166 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -88,6 +88,9 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { uid, gid := uint32(0), uint32(0) // detect mount folder mode + if *option.dirAutoCreate { + os.MkdirAll(dir, 0755) + } mountMode := os.ModeDir | 0755 fileInfo, err := os.Stat(dir) if err == nil { |
