Explorar el Código

Fixed #15

tags/v0.1.2
Big Bad Waffle hace 7 años
padre
commit
62cc67e9d0
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. +7
    -3
      src/server/misc/fileLister.js

+ 7
- 3
src/server/misc/fileLister.js Ver fichero

@@ -13,9 +13,13 @@ define([
},

getFolderList: function(path) {
return fs.readdirSync(path).filter(function(file) {
return fs.statSync(fsPath.join(path, file)).isDirectory();
});
try {
return fs.readdirSync(path).filter(function(file) {
return fs.statSync(fsPath.join(path, file)).isDirectory();
});
} catch (e) {
return [];
}
}
};
});

Cargando…
Cancelar
Guardar