From 4eb788df797579423b09898456b49f2c42e9f990 Mon Sep 17 00:00:00 2001 From: Bala FA Date: Thu, 17 May 2018 19:57:07 +0530 Subject: [PATCH] rename checkPathValid() to getValidPath() (#5949) --- cmd/fs-v1.go | 2 +- cmd/posix.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index f3f299799..ececb7b21 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -102,7 +102,7 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) { } var err error - if fsPath, err = checkPathValid(fsPath); err != nil { + if fsPath, err = getValidPath(fsPath); err != nil { return nil, uiErrUnableToWriteInBackend(err) } diff --git a/cmd/posix.go b/cmd/posix.go index 463e74be1..2817481c2 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -72,7 +72,7 @@ func checkPathLength(pathName string) error { return nil } -func checkPathValid(path string) (string, error) { +func getValidPath(path string) (string, error) { if path == "" { return path, errInvalidArgument } @@ -144,7 +144,7 @@ func isDirEmpty(dirname string) bool { // Initialize a new storage disk. func newPosix(path string) (StorageAPI, error) { var err error - if path, err = checkPathValid(path); err != nil { + if path, err = getValidPath(path); err != nil { return nil, err }