This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fs = require 'fs' | |
path = require 'path' | |
events = require 'events' | |
# Recursively walks a filesystem tree, emitting what it finds. | |
# The EventEmitter produces the following events: | |
# ('file', pathname) for each file discovered. | |
# ('dir', pathname) for each directory discovered. | |
# ('end') when traversal is complete. | |
walk = (pathname) -> |
NewerOlder