mirror of https://github.com/Xhofe/alist
* feat(storage): Added role and user path checking functionality - Added `GetAllRoles` function to retrieve all roles - Added `GetAllUsers` function to retrieve all users - Added `firstPathSegment` function to extract the first segment of a path - Checks whether a storage object is used by a role or user, and returns relevant information for unusing it * fix(storage): Fixed a potential null value issue with not checking firstMount. - Added a check to see if `firstMount` is null to prevent logic errors. - Adjusted the loading logic of `GetAllRoles` and `GetAllUsers` to only execute when `firstMount` is non-null. - Fixed the `usedBy` check logic to ensure that an error message is returned under the correct conditions. - Optimized code structure to reduce unnecessary execution paths. |
||
|---|---|---|
| .. | ||
| archive | ||
| authn | ||
| bootstrap | ||
| conf | ||
| db | ||
| device | ||
| driver | ||
| errs | ||
| fs | ||
| fuse | ||
| message | ||
| model | ||
| net | ||
| offline_download | ||
| op | ||
| search | ||
| session | ||
| setting | ||
| sign | ||
| stream | ||
| task | ||