Skip to content

Instantly share code, notes, and snippets.

View victorsollozzo's full-sized avatar

victorsollozzo

View GitHub Profile
@victorsollozzo
victorsollozzo / gist:4134793
Created November 23, 2012 09:44
recursively find all files in a directory with given extension in node.js
var path = require('path')
var fs = require('fs')
function recFindByExt(base,ext,files,result)
{
files = files || fs.readdirSync(base)
result = result || []
files.forEach(
function (file) {