fix(local): deal with relative symlink dir (#2274)

pull/2276/head
BoYanZh 2022-11-09 18:15:42 +08:00 committed by GitHub
parent 44f5cf40ef
commit 42865486f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ func isSymlinkDir(f fs.FileInfo, path string) bool {
if err != nil {
return false
}
if !filepath.IsAbs(dst) {
dst = filepath.Join(path, dst)
}
stat, err := os.Stat(dst)
if err != nil {
return false