Implement min-free-disk as a subcommand, deprecate flag

This commit is contained in:
Harshavardhana
2015-10-19 00:46:03 -07:00
parent bcbd537d63
commit c065be656c
4 changed files with 44 additions and 38 deletions

View File

@@ -111,7 +111,7 @@ func (fs Filesystem) MakeBucket(bucket, acl string) *probe.Error {
bucketDir := filepath.Join(fs.path, bucket)
// check if bucket exists
if _, err := os.Stat(bucketDir); err == nil {
if _, err = os.Stat(bucketDir); err == nil {
return probe.NewError(BucketExists{
Bucket: bucket,
})