Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
fs = require 'fs'
|
||||
|
||||
walk = (dir, f_match, f_visit) ->
|
||||
_walk = (dir) ->
|
||||
fns = fs.readdirSync dir
|
||||
for fn in fns
|
||||
fn = dir + '/' + fn
|
||||
if f_match fn
|
||||
f_visit fn
|
||||
if fs.statSync(fn).isDirectory()
|
||||
_walk fn
|
||||
_walk(dir)
|
||||
|
||||
dir = '..'
|
||||
matcher = (fn) -> fn.match /\.coffee/
|
||||
action = console.log
|
||||
walk dir, matcher, action
|
||||
Loading…
Add table
Add a link
Reference in a new issue