mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
committed by
Anand Babu (AB) Periasamy
parent
a20ccb1e83
commit
434423de89
23
config.go
23
config.go
@@ -86,26 +86,3 @@ func getConfigFile() (string, error) {
|
||||
}
|
||||
return filepath.Join(configPath, globalMinioConfigFile), nil
|
||||
}
|
||||
|
||||
// isFormatConfigFileExists - returns true if format config file exists.
|
||||
func isFormatConfigFileExists() bool {
|
||||
st, err := os.Stat(mustGetFormatConfigFile())
|
||||
return (err == nil && st.Mode().IsRegular())
|
||||
}
|
||||
|
||||
// mustGetFormatConfigFile must get format config file.
|
||||
func mustGetFormatConfigFile() string {
|
||||
configFile, err := getFormatConfigFile()
|
||||
fatalIf(err, "Unable to get format config file.", nil)
|
||||
|
||||
return configFile
|
||||
}
|
||||
|
||||
// getFormatConfigFile get format config file.
|
||||
func getFormatConfigFile() (string, error) {
|
||||
configPath, err := getConfigPath()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.Join(configPath, globalMinioFormatConfigFile), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user