feat: alist v3 index permission (#2653)
* feat: alist v3 index permission * fix allowIndexed check Co-authored-by: Noah Hsu <i@nn.ci>
This commit is contained in:
@ -21,6 +21,10 @@ import (
|
||||
// so it should actually be a storage, just wrapped by the driver
|
||||
var storagesMap generic_sync.MapOf[string, driver.Driver]
|
||||
|
||||
func GetAllStorages() []driver.Driver {
|
||||
return storagesMap.Values()
|
||||
}
|
||||
|
||||
func GetStorageByVirtualPath(virtualPath string) (driver.Driver, error) {
|
||||
storageDriver, ok := storagesMap.Load(virtualPath)
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user