parent
62ca6849ea
commit
a03b9c805e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue