diff --git a/lib/providers/filesystem/index.js b/lib/providers/filesystem/index.js index a941587..cb71d98 100644 --- a/lib/providers/filesystem/index.js +++ b/lib/providers/filesystem/index.js @@ -99,6 +99,7 @@ FileSystemProvider.prototype.getContainers = function(cb) { fs.readdir(self.root, function(err, files) { var containers = []; var tasks = []; + var files = files || []; files.forEach(function(f) { tasks.push(fs.stat.bind(fs, path.join(self.root, f))); });