Recursively builds a hierarchical representation of a directory structure
Absolute path to start directory
Traversal options
Hierarchical structure of files and directories (no file content)
const structure = getDirectoryStructure('/path/to/project', { includeHidden: false, fileExtensions: ['.ts', '.js'], maxDepth: 5}); Copy
const structure = getDirectoryStructure('/path/to/project', { includeHidden: false, fileExtensions: ['.ts', '.js'], maxDepth: 5});
Recursively builds a hierarchical representation of a directory structure