CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.1.2-dev (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()