fix(smartfs.provider.node): Default deleteDirectory to recursive=true in Node provider
This commit is contained in:
@@ -244,7 +244,7 @@ export class SmartFsProviderNode implements ISmartFsProvider {
|
||||
|
||||
public async deleteDirectory(path: string, options?: { recursive?: boolean }): Promise<void> {
|
||||
await fs.rm(path, {
|
||||
recursive: options?.recursive,
|
||||
recursive: options?.recursive ?? true,
|
||||
force: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user