This repository has been archived on 2022-08-25. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Backend/src/helper/providerManager.ts
Mondei1 0b3502d81f New abstract structure
Events for invoices get emitted in rooms
2020-12-28 19:04:13 +01:00

20 lines
453 B
TypeScript

import { readdirSync } from 'fs';
export class ProviderManager {
providerFilePath: string;
constructor(filePath: string) {
this.providerFilePath = filePath;
}
scan() {
const getDirectories = () =>
readdirSync(this.providerFilePath, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.map(dirent => dirent.name)
console.log(getDirectories());
}
}