mirror of
https://gitee.com/juicedata/JuiceFS.git
synced 2025-12-06 09:39:14 +08:00
windows: fix symbol link cannot be deleted (#6079)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -36,5 +36,7 @@ pkg/meta/testdata
|
||||
/juicefs.ceph
|
||||
/juicefs.exe
|
||||
/juicefsd.exe
|
||||
/juicefs.exe~
|
||||
/juicefsd.exe~
|
||||
/juicefs.lite
|
||||
dist/
|
||||
|
||||
@@ -232,7 +232,7 @@ func (j *juice) Readlink(path string) (e int, target string) {
|
||||
e = -fuse.ENOSYS
|
||||
return
|
||||
}
|
||||
fi, err := j.fs.Stat(ctx, path)
|
||||
fi, err := j.fs.Lstat(ctx, path)
|
||||
if err != 0 {
|
||||
e = errorconv(err)
|
||||
return
|
||||
@@ -496,7 +496,7 @@ func (j *juice) Getattr(p string, stat *fuse.Stat_t, fh uint64) (e int) {
|
||||
return
|
||||
}
|
||||
|
||||
fi, err := j.fs.Stat(ctx, p)
|
||||
fi, err := j.fs.Lstat(ctx, p)
|
||||
if err != 0 {
|
||||
// Known issue: If the parent directory is not exists, the Windows api such as
|
||||
// GetFileAttributeX expects the ERROR_PATH_NOT_FOUND returned.
|
||||
|
||||
Reference in New Issue
Block a user