alist/internal/model
foxxorcat 6024e8d832
refactor: split the db package hook and cache to the op package (#2747)
* refactor:separate the setting method from the db package to the op package and add the cache

* refactor:separate the meta method from the db package to the op package

* fix:setting not load database data

* refactor:separate the user method from the db package to the op package

* refactor:remove user JoinPath error

* fix:op package user cache

* refactor:fs package list method

* fix:tile virtual paths (close #2743)

* Revert "refactor:remove user JoinPath error"

This reverts commit 4e20daaf9e.

* clean path directly may lead to unknown behavior

* fix: The path of the meta passed in must be prefix of reqPath

* chore: rename all virtualPath to mountPath

* fix: `getStoragesByPath` and `GetStorageVirtualFilesByPath`

is_sub_path:

/a/b isn't subpath of /a/bc

* fix: don't save setting if hook error

Co-authored-by: Noah Hsu <i@nn.ci>
2022-12-18 19:51:20 +08:00
..
args.go feat: local storage image thumbnail 2022-08-11 20:32:17 +08:00
meta.go feat: add readme field to list resp 2022-06-30 15:41:58 +08:00
obj.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
object.go refactor: obj name mapping and internal path processing (#2733) 2022-12-17 19:49:05 +08:00
req.go feat: multiple search indexes (#2514) 2022-11-28 13:45:25 +08:00
search.go feat(search): use `FULLTEXT` index (close #2716 pr #2726) 2022-12-16 16:51:36 +08:00
setting.go feat: customize ignore paths of indexes 2022-12-05 16:45:11 +08:00
storage.go refactor: optimize driver initialization need to manually deserialize and assign values, and remove redundant driver registration parameters (#2691) 2022-12-13 18:03:30 +08:00
stream.go refactor: obj name mapping and internal path processing (#2733) 2022-12-17 19:49:05 +08:00
user.go fix: check if the req path is relative path (close #2531) 2022-11-30 21:38:00 +08:00