���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.2
/
nuxi
/
dist
/
shared
/
Viewing: nuxi.c6cd7627.mjs
import { promises, existsSync } from 'node:fs'; import { c as consola } from './nuxi.fefc5017.mjs'; import 'node:util'; import 'node:path'; import 'node:process'; import 'node:tty'; import { j as join, d as dirname } from './nuxi.610c92ff.mjs'; async function clearDir(path, exclude) { if (!exclude) { await promises.rm(path, { recursive: true, force: true }); } else if (existsSync(path)) { const files = await promises.readdir(path); await Promise.all( files.map(async (name) => { if (!exclude.includes(name)) { await promises.rm(join(path, name), { recursive: true, force: true }); } }) ); } await promises.mkdir(path, { recursive: true }); } function clearBuildDir(path) { return clearDir(path, ["cache", "analyze"]); } async function rmRecursive(paths) { await Promise.all( paths.filter((p) => typeof p === "string").map(async (path) => { consola.debug("Removing recursive path", path); await promises.rm(path, { recursive: true, force: true }).catch(() => { }); }) ); } async function touchFile(path) { const time = /* @__PURE__ */ new Date(); await promises.utimes(path, time, time).catch(() => { }); } function findup(rootDir, fn) { let dir = rootDir; while (dir !== dirname(dir)) { const res = fn(dir); if (res) { return res; } dir = dirname(dir); } return null; } export { clearBuildDir as a, clearDir as c, findup as f, rmRecursive as r, touchFile as t };
Coded With 💗 by
0x6ick Mod By V1rus_Alfa