stash/pkg/manager/paths/paths_gallery.go

21 lines
466 B
Go
Raw Normal View History

2019-02-09 12:30:49 +00:00
package paths
import (
"github.com/stashapp/stash/pkg/manager/config"
2019-02-09 12:30:49 +00:00
"path/filepath"
)
type galleryPaths struct{}
2019-02-09 12:30:49 +00:00
func newGalleryPaths() *galleryPaths {
return &galleryPaths{}
2019-02-09 12:30:49 +00:00
}
func (gp *galleryPaths) GetExtractedPath(checksum string) string {
return filepath.Join(config.GetCachePath(), checksum)
2019-02-09 12:30:49 +00:00
}
func (gp *galleryPaths) GetExtractedFilePath(checksum string, fileName string) string {
return filepath.Join(config.GetCachePath(), checksum, fileName)
2019-02-09 12:30:49 +00:00
}