stash/pkg/manager/paths/paths.go
WithoutPants aca2c7c5f4
Images section (#813)
* Add new configuration options
* Refactor scan/clean
* Schema changes
* Add details to galleries
* Remove redundant code
* Refine thumbnail generation
* Gallery overhaul
* Don't allow modifying zip gallery images
* Show gallery card overlays
* Hide zoom slider when not in grid mode
2020-10-13 10:12:46 +11:00

43 lines
830 B
Go

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