Skip to content

[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.

ParameterType
pathstring
scopesreadonly string[]

boolean