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 authored and GitHub committed 2023-01-04 08:15:26 -05:00
1 parent b4d3a16470
commit d157418164
1 file changed
+1 -1
+1 -1
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 });
},
});