safing-portbase/database/location.go
2018-09-06 19:06:13 +02:00

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
}