CH-J Server Manager
Durchsuchen Sie Verzeichnisse und Dateien einer bestimmten Anwendungsausgabe.
Die Quellen werden unter der CH-J Proprietary Software License 1.14 bereitgestellt. Ihre Verfügbarkeit ändert die Lizenzbedingungen nicht und gewährt keine zusätzlichen Rechte.
"use strict";const crypto = require("node:crypto");const fs = require("node:fs");const path = require("node:path");function atomicWriteFile(filePath, content, options = {}) { fs.mkdirSync(path.dirname(filePath), { recursive: true }); const tempPath = `${filePath}.tmp-${crypto.randomBytes(6).toString("hex")}`; const backupPath = `${filePath}.replace-backup`; fs.writeFileSync(tempPath, content, { mode: options.mode || 0o600, encoding: options.encoding }); try { if (process.platform === "win32" && fs.existsSync(filePath)) { try { fs.unlinkSync(backupPath); } catch {} fs.renameSync(filePath, backupPath); try { fs.renameSync(tempPath, filePath); fs.unlinkSync(backupPath); } catch (error) { try { fs.renameSync(backupPath, filePath); } catch {} throw error; } } else { fs.renameSync(tempPath, filePath); } } catch (error) { try { fs.unlinkSync(tempPath); } catch {} throw error; }}function atomicWriteJson(filePath, value) { atomicWriteFile(filePath, `${JSON.stringify(value, null, 2)}\n`, { encoding: "utf8", mode: 0o600 });}module.exports = { atomicWriteFile, atomicWriteJson };SHA-256: 7aee82e6b371127f5467bd9f5b77e57dfccbe53d8b7eed9a675767ff4c8c5610
SHA-256 des Archivs: 5ac91caf4fa32a6fdb114f2430deed486fbe7489d5eea343d1f034169fafb5e0