// Imports import * as recursiveReadSync from 'recursive-readdir-sync'; export class FileSystemGateway { public async connect(): Promise { return; } public async listFiles(path: string): Promise { const files: string[] = recursiveReadSync(path); return files.map((x) => this.toLinuxPath(x)); } public async copyFile(sourcePath: string, destinationPath: string): Promise { throw new Error('Not Implemented'); } public async createDirectory(path: string): Promise { throw new Error('Not Implemented'); } public async executeCommand(command: string): Promise { throw new Error('Not Implemented'); } public async close(): Promise { return; } private toLinuxPath(str) { return str.replace(/\\/g, '/'); } }