refactor: Use endsWith for app folder path test
This commit is contained in:
@@ -8,6 +8,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
class App {
|
||||
static folderPath = join(__dirname, '../apps');
|
||||
|
||||
static list = fs
|
||||
.readdirSync(this.folderPath)
|
||||
.filter((file) => fs.statSync(join(this.folderPath, file)).isDirectory());
|
||||
|
Reference in New Issue
Block a user