fix(core): update
This commit is contained in:
@ -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
|
||||
// ========
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user