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

@ -22,7 +22,7 @@ export class Smartfile {
* creates a Smartfile from a filePath
* @param filePath
*/
public static async fromFilePath (filePath: string) {
public static async fromFilePath(filePath: string) {
filePath = plugins.path.resolve(filePath);
const fileString = fs.toStringSync(filePath);
const smartfile = new Smartfile({
@ -32,7 +32,6 @@ export class Smartfile {
return smartfile;
}
// ========
// INSTANCE
// ========

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) {