alist/server/handles
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
..
aria2.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
auth.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
down.go fix!: sign with the raw path instead of filename (#2258) 2022-11-11 16:24:25 +08:00
driver.go style: shorten name `operations` to `op` 2022-08-31 21:01:15 +08:00
fsmanage.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
fsread.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
fsup.go fix: check if the req path is relative path (close #2531) 2022-11-30 21:38:00 +08:00
helper.go fix: page crashes if ipa name contains chinese (close #1712) 2022-09-19 13:33:23 +08:00
index.go feat: index enhancement (close #2632 pr #2636) 2022-12-09 10:02:13 +08:00
meta.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
search.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
setting.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
storage.go feat: multiple search indexes (#2514) 2022-11-28 13:45:25 +08:00
task.go chore: rename remove to delete 2022-07-31 21:42:01 +08:00
user.go refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00