Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
332 Bytes
import { globby } from "globby"
import { rm } from "node:fs/promises"
export async function cleanFiles() {
const files = await globby("src/**/*.{ts,tsx}", {
ignore: ["src/{def,utilities}.ts"],
})
const promises = files.map(async (file) => {
return rm(file, { recursive: true })
})
await Promise.all(promises)
}