mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
[Files Refactor] Rollback platform-agnostic paths (#2852)
* Rollback platform agnostic path storage * Add release note for database change
This commit is contained in:
@@ -491,13 +491,11 @@ func (qb *SceneStore) FindByPath(ctx context.Context, p string) ([]*models.Scene
|
||||
filesTable := fileTableMgr.table
|
||||
foldersTable := folderTableMgr.table
|
||||
basename := filepath.Base(p)
|
||||
dirStr := filepath.Dir(p)
|
||||
dir := filepath.Dir(p)
|
||||
|
||||
// replace wildcards
|
||||
basename = strings.ReplaceAll(basename, "*", "%")
|
||||
dirStr = strings.ReplaceAll(dirStr, "*", "%")
|
||||
|
||||
dir, _ := path(dirStr).Value()
|
||||
dir = strings.ReplaceAll(dir, "*", "%")
|
||||
|
||||
sq := dialect.From(scenesFilesJoinTable).InnerJoin(
|
||||
filesTable,
|
||||
|
||||
Reference in New Issue
Block a user