mirror of https://github.com/Xhofe/alist
fix(local): deal with relative symlink dir (#2274)
parent
44f5cf40ef
commit
42865486f1
|
@ -12,6 +12,9 @@ func isSymlinkDir(f fs.FileInfo, path string) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if !filepath.IsAbs(dst) {
|
||||||
|
dst = filepath.Join(path, dst)
|
||||||
|
}
|
||||||
stat, err := os.Stat(dst)
|
stat, err := os.Stat(dst)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue