The utility function to walk directory tree fast for node.js.