Synchronous and asynchronous recursive directory walking for node