Skip to content

Instantly share code, notes, and snippets.

@tkssharma
Created September 13, 2018 15:30
Show Gist options
  • Save tkssharma/5d9c68d929742f301b7241efdcc3e205 to your computer and use it in GitHub Desktop.
Save tkssharma/5d9c68d929742f301b7241efdcc3e205 to your computer and use it in GitHub Desktop.
fs.readdir(source, function (err, files) {
if (err) {
console.log('Error finding files: ' + err)
} else {
files.forEach(function (filename, fileIndex) {
console.log(filename)
gm(source + filename).size(function (err, values) {
if (err) {
}.bind(this))
}
})
}
});
fs.readdir(source, function (err, files) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment