stash/pkg/models/paths/paths.go
Bob 169bebeaf5 Direct Streams working
- Removed funscripts, they are for interactive
- updated the scanner to correctly create `audio_files` row
- Adding Audio to `paths`
- Updated sqlite to add AudioFile

Need to update mutations next
2026-04-26 20:21:51 -07:00

37 lines
783 B
Go

// Package paths provides functions to return paths to various resources.
package paths
import (
"path/filepath"
"github.com/stashapp/stash/pkg/fsutil"
)
type Paths struct {
Generated *generatedPaths
Scene *scenePaths
Audio *audioPaths
SceneMarkers *sceneMarkerPaths
Blobs string
}
func NewPaths(generatedPath string, blobsPath string) Paths {
p := Paths{}
p.Generated = newGeneratedPaths(generatedPath)
p.Scene = newScenePaths(p)
p.Audio = newAudioPaths(p)
p.SceneMarkers = newSceneMarkerPaths(p)
p.Blobs = blobsPath
return p
}
func GetStashHomeDirectory() string {
return filepath.Join(fsutil.GetHomeDirectory(), ".stash")
}
func GetDefaultDatabaseFilePath() string {
return filepath.Join(GetStashHomeDirectory(), "stash-go.sqlite")
}