fix: acl path needs to be resolved
This commit is contained in:
parent
4e129d527a
commit
3f65c7e610
1 changed files with 2 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ async function hasAcl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
path = resolve(path)
|
||||||
await access(path, constants.R_OK)
|
await access(path, constants.R_OK)
|
||||||
return true
|
return true
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
@ -235,6 +236,7 @@ async function hasAclW() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
path = resolve(path)
|
||||||
await access(path, constants.W_OK)
|
await access(path, constants.W_OK)
|
||||||
return true
|
return true
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue