posix: Split on ":" in path d:\export makes minio use wrong disk. (#3027)

As the host/path split happens at a higher layer now, split at posix is not needed.
fixes part of #2987
This commit is contained in:
Krishna Srinivas 2016-10-21 12:09:33 +05:30 committed by Harshavardhana
parent 43ce028840
commit d3aaf50a40
1 changed files with 0 additions and 3 deletions

View File

@ -103,9 +103,6 @@ func newPosix(diskPath string) (StorageAPI, error) {
return nil, errInvalidArgument
}
suppliedDiskPath := diskPath
if idx := strings.LastIndex(diskPath, ":"); idx != -1 {
diskPath = diskPath[idx+1:]
}
var err error
// Disallow relative paths, figure out absolute paths.
diskPath, err = filepath.Abs(diskPath)