Created
September 13, 2018 15:30
-
-
Save tkssharma/5d9c68d929742f301b7241efdcc3e205 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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