From 0b583f6240ca08cd2d49a53e84b81ecc80fa83d1 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 8 Apr 2015 16:21:39 -0700 Subject: [PATCH] Add pkg/client/file stub file --- pkg/client/file/.gitignore | 0 url-parser.go | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 pkg/client/file/.gitignore diff --git a/pkg/client/file/.gitignore b/pkg/client/file/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/url-parser.go b/url-parser.go index 41de2f5a..e3e7b808 100644 --- a/url-parser.go +++ b/url-parser.go @@ -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) {