Skip to content

Instantly share code, notes, and snippets.

View hjnp's full-sized avatar
🙉
focusing

Helder Pinto hjnp

🙉
focusing
View GitHub Profile
@hjnp
hjnp / Node.js File Looper
Created February 7, 2018 21:23 — forked from adamwdraper/Node.js File Looper
Loop through all files in a given directory with node.js
var fs = require('fs');
var walkPath = './';
var walk = function (dir, done) {
fs.readdir(dir, function (error, list) {
if (error) {
return done(error);
}