mirror of
https://github.com/minio/mc.git
synced 2025-11-14 23:42:27 +03:00
Add pkg/client/file stub file
This commit is contained in:
0
pkg/client/file/.gitignore
vendored
Normal file
0
pkg/client/file/.gitignore
vendored
Normal file
@@ -132,7 +132,7 @@ func url2Object(urlStr string) (bucketName, objectName string, err error) {
|
|||||||
u, err := url.Parse(urlStr)
|
u, err := url.Parse(urlStr)
|
||||||
if u.Path == "" {
|
if u.Path == "" {
|
||||||
// No bucket name passed. It is a valid case
|
// No bucket name passed. It is a valid case
|
||||||
return "", "", iodine.New(errInvalidbucket, nil)
|
return "", "", nil
|
||||||
}
|
}
|
||||||
splits := strings.SplitN(u.Path, "/", 3)
|
splits := strings.SplitN(u.Path, "/", 3)
|
||||||
switch len(splits) {
|
switch len(splits) {
|
||||||
|
|||||||
Reference in New Issue
Block a user