Say I've got the following directory structure.
project
│ file1.pdf
│
└───folder1
│ │ file2.pdf
│ │
│ └───folder2
│ │ file3.pdf
I'd like to define a function, where I can pass in the absolute path of the project
folder and have the following returned (ideally in an array or something):
Ideally: [file1.pdf, file2.pdf, file3.pdf]
Acceptable: [file1.pdf, folder1/file2.pdf, folder1/folder2/file3.pdf]
Does anyone know how I could do this in NodeJS? Thanks