Currently, I am in the process of developing an npm package that validates imported images. Can anyone provide some insights on how to instruct javascript to iterate through a specific directory and store the file paths in an array?
Furthermore, my aim is to then loop through a different directory and verify whether those files include the respective file path as a string.
I have been struggling to locate any resources or examples demonstrating the dynamic extraction of file paths from directories. Any assistance would be greatly valued.