[F] isPathWithinScopes
function isPathWithinScopes(path, scopes): boolean;Test whether path falls within at least one of the granted directory/file
scopes. Paths are normalized; a scope grants access to itself and anything
beneath it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path | string |
scopes | readonly string[] |
Returns
Section titled “Returns”boolean