mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Update templates and generators to support ACP
This commit is contained in:
@@ -272,6 +272,14 @@ export function mockFileSystem(rootFilepath?: string, time?: Date): { data: any
|
||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||
delete folder[name];
|
||||
},
|
||||
async pathExists(path: string): Promise<boolean> {
|
||||
try {
|
||||
const { folder, name } = getFolder(path);
|
||||
return Boolean(folder[name]);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
createReadStream(path: string): any {
|
||||
return mockFs.createReadStream(path);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user