package paths import ( "path/filepath" "github.com/stashapp/stash/pkg/utils" ) type Paths struct { Generated *generatedPaths Scene *scenePaths SceneMarkers *sceneMarkerPaths } func NewPaths(generatedPath string) *Paths { p := Paths{} p.Generated = newGeneratedPaths(generatedPath) p.Scene = newScenePaths(p) p.SceneMarkers = newSceneMarkerPaths(p) return &p } func GetStashHomeDirectory() string { return filepath.Join(utils.GetHomeDirectory(), ".stash") } func GetDefaultDatabaseFilePath() string { return filepath.Join(GetStashHomeDirectory(), "stash-go.sqlite") } func GetSSLKey() string { return filepath.Join(GetStashHomeDirectory(), "stash.key") } func GetSSLCert() string { return filepath.Join(GetStashHomeDirectory(), "stash.crt") }