fix remove

This commit is contained in:
tdurieux
2021-08-11 18:35:53 +02:00
parent 17f4f49db7
commit 883f992edc

View File

@@ -39,8 +39,11 @@ export default class FileSystem implements StorageBase {
}
/** @override */
async rm(path: string): Promise<void> {
await fs.promises.rm(path, { force: true, recursive: true });
async rm(dir: string): Promise<void> {
await fs.promises.rm(path.join(config.FOLDER, dir), {
force: true,
recursive: true,
});
}
/** @override */