Support multiple content folders. Closes #2

This commit is contained in:
Stash Dev
2019-03-23 14:09:05 -07:00
parent d959d61e6c
commit ae9bbf237f
17 changed files with 1449 additions and 886 deletions

View File

@@ -1,7 +1,7 @@
package paths
import (
"os/user"
"github.com/stashapp/stash/pkg/utils"
"path/filepath"
)
@@ -25,16 +25,8 @@ func NewPaths() *Paths {
return &p
}
func GetHomeDirectory() string {
currentUser, err := user.Current()
if err != nil {
panic(err)
}
return currentUser.HomeDir
}
func GetConfigDirectory() string {
return filepath.Join(GetHomeDirectory(), ".stash")
return filepath.Join(utils.GetHomeDirectory(), ".stash")
}
func GetDefaultDatabaseFilePath() string {