mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-23 17:49:40 +02:00
fix remove
This commit is contained in:
@@ -39,8 +39,11 @@ export default class FileSystem implements StorageBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async rm(path: string): Promise<void> {
|
async rm(dir: string): Promise<void> {
|
||||||
await fs.promises.rm(path, { force: true, recursive: true });
|
await fs.promises.rm(path.join(config.FOLDER, dir), {
|
||||||
|
force: true,
|
||||||
|
recursive: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
|
|||||||
Reference in New Issue
Block a user