Iterate Over Files and Folders Using Node


Node

Updated Jun 28th, 2021

Need to programmatically go into 1900 folders each with two fikes inside and move to parent directory.

I want to do this in node instead of python because I’ve been working with JavaScript and node should be able to do this right?

Finally a video here about using fs.readdir to look within folders for files.

I guess you need to recursively readdir, another video here that brings up this term.


Top