The function reads the contents of a directory and returns a tree structure of the files and directories.
If no options are provided, the function uses the node.js fs/promises module if available. Should this
fail, an error is thrown.
In contrast to the loadDir function, this function attempts to use Node.js's fs/promises module
if no options are provided. If the module is not available, an error is thrown.
Load a directory tree.
The function reads the contents of a directory and returns a tree structure of the files and directories. If no options are provided, the function uses the node.js
fs/promises
module if available. Should this fail, an error is thrown.In contrast to the loadDir function, this function attempts to use Node.js's
fs/promises
module if no options are provided. If the module is not available, an error is thrown.