mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
- 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
37 lines
783 B
Go
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")
|
|
}
|