Future.wait() can't wait without a fiber (while waiting on another future in Meteor.method)
问题 In Meteor , I'm writing a method that will have to check a certain path's subdirectories for new files. I first would like to just list the subdirectories within Meteor after which I child_process.exec a simple bash script that lists files added since the last time it executed. I'm having some issues getting the directory discovery to be async ( Error: Can't wait without a fiber ). I've written a synchronous version but having both fs.readdir and fs.stat in stead of their synchronous