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