forked from sunglocto/lambda
18 lines
341 B
Go
18 lines
341 B
Go
package main
|
|
|
|
// This file makes the config directory and returns its location path.
|
|
|
|
import (
|
|
"github.com/kirsle/configdir"
|
|
)
|
|
|
|
func ensureConfig() (string, error) {
|
|
configPath := configdir.LocalConfig("lambda-im")
|
|
err := configdir.MakePath(configPath) // Ensure it exists.
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
|
|
return configPath, nil
|
|
}
|