Skip to content

Instantly share code, notes, and snippets.

View Ari0000's full-sized avatar

humukiel Ari0000

View GitHub Profile
@Ari0000
Ari0000 / Node.js File Looper
Created January 2, 2019 13:15 — 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);
}