We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a5fc3 commit 4153e4dCopy full SHA for 4153e4d
packages/cubejs-backend-shared/src/FileRepository.ts
@@ -26,7 +26,9 @@ export class FileRepository implements SchemaFileRepository {
26
let files: string[] = [];
27
28
try {
29
- files = await fs.readdir(path.join(this.localPath(), dir));
+ const fullPath = path.join(this.localPath(), dir);
30
+ await fs.ensureDir(fullPath);
31
+ files = await fs.readdir(fullPath);
32
} catch (e) {
33
throw new Error(`Model files not found. Please make sure the "${this.repositoryPath}" directory exists and contains model files.`);
34
}
0 commit comments