🛠 Allow applications to manage the drive (#59)
* Now applications can manage the drive as they wish * Fix typo * Fix the access computation * Test if my code is the issue * Fix test if app exists * Fix test if app exists * Fix test if app exists
This commit is contained in:
@@ -45,7 +45,7 @@ export default class LocalConnectorService implements StorageConnectorAPI {
|
||||
async read(path: string): Promise<Readable> {
|
||||
const fullPath = this.getFullPath(path);
|
||||
if (!fs.existsSync(fullPath)) {
|
||||
throw new Error("File doesn't not exists");
|
||||
throw new Error("File doesn't exists");
|
||||
}
|
||||
return createReadStream(fullPath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user