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 (#6863)

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-01-04 05:15:26 -08:00 committed by GitHub
parent b4d3a16470
commit d157418164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });
}, },
}); });