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:
walloo
2025-10-23 22:18:56 +08:00
committed by GitHub
parent 525f26dc23
commit 8f18e34da0

View File

@@ -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