mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix removePath functionality to also include directories (#6863)
Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
b4d3a16470
commit
d157418164
@ -12,7 +12,7 @@ const removePathInjectable = getInjectable({
|
|||||||
instantiate: (di): RemovePath => {
|
instantiate: (di): RemovePath => {
|
||||||
const { rm } = di.inject(fsInjectable);
|
const { rm } = di.inject(fsInjectable);
|
||||||
|
|
||||||
return (filePath) => rm(filePath, { force: true });
|
return (filePath) => rm(filePath, { force: true, recursive: true });
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user