stash/pkg/manager/paths/paths_gallery.go

21 lines
466 B
Go

package paths
import (
"github.com/stashapp/stash/pkg/manager/config"
"path/filepath"
)
type galleryPaths struct{}
func newGalleryPaths() *galleryPaths {
return &galleryPaths{}
}
func (gp *galleryPaths) GetExtractedPath(checksum string) string {
return filepath.Join(config.GetCachePath(), checksum)
}
func (gp *galleryPaths) GetExtractedFilePath(checksum string, fileName string) string {
return filepath.Join(config.GetCachePath(), checksum, fileName)
}