1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Add pkg/client/file stub file

This commit is contained in:
Harshavardhana
2015-04-08 16:21:39 -07:00
parent bb1324148f
commit 0b583f6240
2 changed files with 1 additions and 1 deletions

View File

@@ -132,7 +132,7 @@ func url2Object(urlStr string) (bucketName, objectName string, err error) {
u, err := url.Parse(urlStr)
if u.Path == "" {
// No bucket name passed. It is a valid case
return "", "", iodine.New(errInvalidbucket, nil)
return "", "", nil
}
splits := strings.SplitN(u.Path, "/", 3)
switch len(splits) {