List Directory Contents Given a File Path (Node.js)
Problem: Print directory tree given a file path (Node.js)
Given a filesystem path path (possibly a directory), use Node.js to read and print all files and folders under that path as a tree.
###...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
