1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix removePath functionality to also include directories

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-03 09:32:45 -05:00
parent 2363b390c9
commit 307a0de272

View File

@ -12,7 +12,7 @@ const removePathInjectable = getInjectable({
instantiate: (di): RemovePath => {
const { rm } = di.inject(fsInjectable);
return (filePath) => rm(filePath, { force: true });
return (filePath) => rm(filePath, { force: true, recursive: true });
},
});