mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
fix remove
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user