mirror of
https://github.com/stashapp/stash.git
synced 2025-12-12 03:12:24 +01:00
* Reassign scene file functionality * Implement scene create * Add scene create UI * Add sceneMerge backend support * Add merge scene to UI * Populate split create with scene details * Add merge button to duplicate checker * Handle file-less scenes in marker preview generate * Make unique file name for file-less scene exports * Add o-counter to scene update input * Hide rescan for file-less scenes * Generate heatmap if no speed set on file * Fix count in scene/image queries
31 lines
594 B
Go
31 lines
594 B
Go
package paths
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/stashapp/stash/pkg/fsutil"
|
|
)
|
|
|
|
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(fsutil.GetHomeDirectory(), ".stash")
|
|
}
|
|
|
|
func GetDefaultDatabaseFilePath() string {
|
|
return filepath.Join(GetStashHomeDirectory(), "stash-go.sqlite")
|
|
}
|