mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 03:15:19 +08:00
fix(alias): nil panic in ResolveLinkCacheMode (#1527)
* fix(alias): Check the driver path during initialization * fix(alias): Don't check the driver path during initialization anymore.
This commit is contained in:
@@ -532,7 +532,7 @@ func (d *Alias) ResolveLinkCacheMode(path string) driver.LinkCacheMode {
|
||||
}
|
||||
for _, dst := range dsts {
|
||||
storage, actualPath, err := op.GetStorageAndActualPath(stdpath.Join(dst, sub))
|
||||
if err == nil {
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
mode := storage.Config().LinkCacheMode
|
||||
|
||||
Reference in New Issue
Block a user