fix: improve paths for windows os

This commit is contained in:
Jakub P.
2024-07-26 11:30:55 +02:00
committed by Ali BARIN
parent 09d3a06b27
commit a755ee8dc1
5 changed files with 9 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ class App {
static folderPath = join(__dirname, '../apps');
static list = fs
.readdirSync(this.folderPath)
.filter((file) => fs.statSync(this.folderPath + '/' + file).isDirectory());
.filter((file) => fs.statSync(join(this.folderPath, file)).isDirectory());
static async findAll(name, stripFuncs = true) {
if (!name)