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 {
|
||||
path = resolve(path)
|
||||
await access(path, constants.R_OK)
|
||||
return true
|
||||
} catch {}
|
||||
|
|
@ -235,6 +236,7 @@ async function hasAclW() {
|
|||
}
|
||||
|
||||
try {
|
||||
path = resolve(path)
|
||||
await access(path, constants.W_OK)
|
||||
return true
|
||||
} catch {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue