mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-20 11:50:13 +08:00
fix(local): deal with relative symlink dir (#2274)
This commit is contained in:
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
Block a user