kabirgh
2024-01-15 8eec47c340d48d9b45970a88da0aaff4e216a7e2
quartz/cli/helpers.js
@@ -3,6 +3,7 @@
import { contentCacheFolder } from "./constants.js"
import { spawnSync } from "child_process"
import fs from "fs"
import { rimraf } from "rimraf"
export function escapePath(fp) {
  return fp
@@ -52,3 +53,11 @@
  })
  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)
  }
}