Closed Annubis45 closed 2 years ago
Excellent. I'll give this PR a spin and make sure everything is kosher. Not sure why the test suite didn't pick this issue up so I may need to add a new test or adjust a current one to make sure the intended functionality is working as expected from here on out.
Fixes #87
For the record, this fix was pushed out in v2.1.1. Thank you for your contribution!
when scanDir was called, it was returning a promise that calls scanFiles. But scanFiles returns a promise also. Solved by awaiting the return of scanFiles call and resolving correctly the promise of scanDir.