mirror of https://github.com/minio/minio.git
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:
parent
43ce028840
commit
d3aaf50a40
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue