mirror of
https://github.com/alrayyes/wiki.git
synced 2025-04-30 22:24:14 +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/cli
|
@ -3,7 +3,6 @@ import chalk from "chalk"
|
|||
import { contentCacheFolder } from "./constants.js"
|
||||
import { spawnSync } from "child_process"
|
||||
import fs from "fs"
|
||||
import { rimraf } from "rimraf"
|
||||
|
||||
export function escapePath(fp) {
|
||||
return fp
|
||||
|
@ -53,11 +52,3 @@ export async function popContentFolder(contentFolder) {
|
|||
})
|
||||
await fs.promises.rm(contentCacheFolder, { force: true, recursive: true })
|
||||
}
|
||||
|
||||
export async function rmrf(path) {
|
||||
if (os.platform() == "win32") {
|
||||
return rimraf.windows(path)
|
||||
} else {
|
||||
return rimraf(path)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue