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. |
||
---|---|---|
.. | ||
db.go | ||
label.go | ||
label_file_binding.go | ||
meta.go | ||
obj_file.go | ||
role.go | ||
searchnode.go | ||
session.go | ||
settingitem.go | ||
sshkey.go | ||
storage.go | ||
tasks.go | ||
user.go | ||
util.go |