CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (changelog, source)
Search

Member predicate FileSystemAccess::getRootPathArgument

Gets an argument to this file system access that is interpreted as a root folder in which the path arguments are constrained.

In other words, if a root argument is provided, the underlying file access does its own sanitization to prevent the path arguments from traversing outside the root folder.

Node getRootPathArgument()