Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/scripts/lib/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 842 B image not shown  

Quelle  copy-assets.ts

  Sprache: JAVA
 

Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";

export type BuildCopyContext = {
  prefix: string;
  projectRoot: string;
  verbose: boolean;
};

export function resolveBuildCopyContext(importMetaUrl: string): BuildCopyContext {
  const filePath = fileURLToPath(importMetaUrl);
  return {
    prefix: `[${path.basename(filePath, path.extname(filePath))}]`,
    projectRoot: path.resolve(path.dirname(filePath), ".."),
    verbose: process.env.OPENCLAW_BUILD_VERBOSE === "1",
  };
}

export function ensureDirectory(dirPath: string): void {
  if (!fs.existsSync(dirPath)) {
    fs.mkdirSync(dirPath, { recursive: true });
  }
}

export function logVerboseCopy(context: BuildCopyContext, message: string): void {
  if (context.verbose) {
    console.log(`${context.prefix} ${message}`);
  }
}

¤ Dauer der Verarbeitung: 0.22 Sekunden  (vorverarbeitet am  2026-04-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.