removed HomeDir

This commit is contained in:
Anand Babu (AB) Periasamy
2015-03-01 15:12:09 -08:00
parent cd22304afb
commit 177121868b
3 changed files with 13 additions and 20 deletions

View File

@@ -19,23 +19,9 @@ package helpers
import (
"io/ioutil"
"log"
"os"
"runtime"
"strings"
)
// Get current user home directory
func HomeDir() string {
if runtime.GOOS == "windows" {
home := os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
if home == "" {
home = os.Getenv("USERPROFILE")
}
return home
}
return os.Getenv("HOME")
}
// Create a new temp directory
func MakeTempTestDir() (string, error) {
return ioutil.TempDir("/tmp", "minio-test-")