aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-07-16 22:50:14 -0700
committerChris Lu <chris.lu@gmail.com>2020-07-16 22:50:14 -0700
commitf43146b237bc5bbfb7033f6e427b5299554c0824 (patch)
treedf4a05999d67abb7c4765d39eddc01318521169b /weed/command/volume.go
parentbefb396892deb7e5fdaefaf2f952bd744cc08ace (diff)
downloadseaweedfs-f43146b237bc5bbfb7033f6e427b5299554c0824.tar.xz
seaweedfs-f43146b237bc5bbfb7033f6e427b5299554c0824.zip
resolve directories if containing home directory
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 27687af66..4f04a467d 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -117,7 +117,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
// Set multiple folders and each folder's max volume count limit'
v.folders = strings.Split(volumeFolders, ",")
for _, folder := range v.folders {
- if err := util.TestFolderWritable(folder); err != nil {
+ if err := util.TestFolderWritable(util.ResolvePath(folder)); err != nil {
glog.Fatalf("Check Data Folder(-dir) Writable %s : %s", folder, err)
}
}