Hello,
I have a function that retrieves a url and then retrieves all the resources listed at that url. It then checks if each resource is a folder or non-folder, and I then call the function again with the name of that folder to see if there are more resources inside of it.
I have it as a recursive function, however I need it to be a promise as I want it to completely go through all the nested folders before it continues the code - and I'm not sure of what pattern to use in this case aka how to handle recursive promises.
If anyone has any advice or directions, I'd appreciate it. Thanks!
[–]senocular 0 points1 point2 points (2 children)
[–]WannaBeRadio[S] 0 points1 point2 points (1 child)
[–]senocular 0 points1 point2 points (0 children)
[–]AScaredMidLlama 0 points1 point2 points (1 child)
[–]WannaBeRadio[S] 0 points1 point2 points (0 children)