mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
14 lines
263 B
Go
14 lines
263 B
Go
package database
|
|
|
|
import (
|
|
"path"
|
|
)
|
|
|
|
var (
|
|
rootDir string
|
|
)
|
|
|
|
// getLocation returns the storage location for the given name and type.
|
|
func getLocation(name, storageType string) (location string, err error) {
|
|
return path.Join(rootDir, name, storageType), nil
|
|
}
|