src/util/file-access-allowed

File access allowed module
Source:

(require("src/util/file-access-allowed"))(filePath, allowedPaths) → {boolean}

Function to ensure that a given file path is whitelisted
Parameters:
Name Type Description
filePath string path to check
allowedPaths array.<string> path whitelist
Source:
Returns:
true if access allowed, false otherwise
Type
boolean