mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
19 lines
261 B
Go
19 lines
261 B
Go
package lib
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func GetConfigDirectory() (string, error) {
|
|
home, err := os.UserHomeDir()
|
|
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
|
|
config, err := filepath.Abs(filepath.Join(home, DEFAULT_CONFIG_DIRECTORY))
|
|
|
|
return config, nil
|
|
}
|