site/node_modules/rimraf/dist/esm/rimraf-native.js

19 lines
430 B
JavaScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
import { promises, rmSync } from './fs.js';
const { rm } = promises;
export const rimrafNative = async (path, opt) => {
await rm(path, {
...opt,
force: true,
recursive: true,
});
return true;
};
export const rimrafNativeSync = (path, opt) => {
rmSync(path, {
...opt,
force: true,
recursive: true,
});
return true;
};
//# sourceMappingURL=rimraf-native.js.map