mirror of
https://github.com/minio/minio.git
synced 2025-11-21 18:26:04 -05:00
server: Deadcode removal. (#1517)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
bf563afb80
commit
937d68202d
12
posix.go
12
posix.go
@@ -52,18 +52,6 @@ func isDirEmpty(dirname string) (status bool, err error) {
|
||||
return status, err
|
||||
}
|
||||
|
||||
// isDirExist - returns whether given directory exists or not.
|
||||
func isDirExist(dirname string) (bool, error) {
|
||||
fi, e := os.Stat(dirname)
|
||||
if e != nil {
|
||||
if os.IsNotExist(e) {
|
||||
return false, nil
|
||||
}
|
||||
return false, e
|
||||
}
|
||||
return fi.IsDir(), nil
|
||||
}
|
||||
|
||||
// Initialize a new storage disk.
|
||||
func newPosix(diskPath string) (StorageAPI, error) {
|
||||
if diskPath == "" {
|
||||
|
||||
Reference in New Issue
Block a user