CodeQL library for JavaScript
codeql/javascript-all 0.7.5 ( changelog , source )

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 ( )