Update index.js

Took suggestion from Raymond...
This commit is contained in:
Tony Sukiennik 2014-10-25 22:38:04 -07:00
parent 62ca6849ea
commit a03b9c805e
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ FileSystemProvider.prototype.getFiles = function (container, options, cb) {
if (!validateName(container, cb)) return; if (!validateName(container, cb)) return;
var dir = path.join(this.root, container); var dir = path.join(this.root, container);
fs.readdir(dir, function (err, entries) { fs.readdir(dir, function (err, entries) {
entries = entries ? entries : []; entries = entries || [];
var files = []; var files = [];
var tasks = []; var tasks = [];
entries.forEach(function (f) { entries.forEach(function (f) {