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

Implement fsClient tests - fixes #433

This commit is contained in:
Harshavardhana
2015-04-20 02:34:06 -07:00
parent f0aceedbd3
commit a4c1d26ccb
2 changed files with 120 additions and 26 deletions

View File

@@ -182,8 +182,7 @@ func (f *fsClient) PutBucket() error {
// StatBucket -
func (f *fsClient) StatBucket() error {
bucket, _ := f.url2Object()
st, err := os.Stat(bucket)
st, err := os.Stat(f.Path)
if os.IsNotExist(err) {
return iodine.New(client.BucketNotFound{Bucket: ""}, nil)
}