storage: Add storage interface.

This commit is contained in:
Harshavardhana
2016-04-07 19:01:15 -07:00
parent b182e94acc
commit bad2f2afbb
5 changed files with 398 additions and 17 deletions
-17
View File
@@ -33,23 +33,6 @@ import (
"github.com/minio/minio/pkg/safe"
)
// isDirEmpty - returns whether given directory is empty or not.
func isDirEmpty(dirname string) (status bool, err error) {
f, err := os.Open(dirname)
if err == nil {
defer f.Close()
if _, err = f.Readdirnames(1); err == io.EOF {
status = true
err = nil
}
}
return
}
/// Object Operations
// GetObject - GET object