mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-01 03:40:59 +00:00
This reverts commit 8eec47c340
.
This commit is contained in:
parent
8eec47c340
commit
30640e3441
4 changed files with 5 additions and 27 deletions
quartz/util
|
@ -1,13 +0,0 @@
|
|||
import os from "os"
|
||||
import { rimraf, RimrafAsyncOptions } from "rimraf"
|
||||
|
||||
export async function rmrf(
|
||||
path: string | string[],
|
||||
opt?: RimrafAsyncOptions | undefined,
|
||||
): Promise<boolean> {
|
||||
if (os.platform() == "win32") {
|
||||
return rimraf.windows(path, opt)
|
||||
} else {
|
||||
return rimraf(path, opt)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue