This file contains 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
476F70696E61746820426C75655069652069616D626C756570696540676D61696C2E636F6DDA596F7520617265207468652073776565746573742C206B696E6465737420616E64206C6F7661626C6520706572736F6E204920686176652065766572207365656E2E20596F7520686176652061207370656369616C20706C61636520696E206D792068656172742E2E20262049206C696B6520796F752076657279206D7563682E20 | |
SSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dlSSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dlSSB3aXNoIHdlIHNwZW50IG1vcmUgdGltZSB0b2dldGhlciBhcyBmcmllbmRzLi4= |
This file contains 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
var fs = require('fs'); | |
var path = require('path') | |
module.exports = function(dir,extension,cbf){ | |
fs.readdir(dir,function(err,files){ | |
if(err){ | |
cbf(err,null); | |
} | |
else{ | |
cbf(null,files.filter(function(val){ | |
if(path.extname(val)=='.'+extension){ |