fix(core): update

This commit is contained in:
2019-04-08 16:39:41 +02:00
parent 77c88f09cd
commit 4c23992681
6 changed files with 32 additions and 40 deletions

View File

@ -266,7 +266,7 @@ export let listFolders = async (pathArg: string, regexFilter?: RegExp): Promise<
* @returns an array with the folder names as strings
*/
export let listFoldersSync = (pathArg: string, regexFilter?: RegExp): string[] => {
let folderArray = plugins.fsExtra.readdirSync(pathArg).filter((file) => {
let folderArray = plugins.fsExtra.readdirSync(pathArg).filter(file => {
return plugins.fsExtra.statSync(plugins.path.join(pathArg, file)).isDirectory();
});
if (regexFilter) {