Nucleus handler tools β€Ί Docs β€Ί Context β€Ί CopyFolder

Context.CopyFolder

Open in the workbench (search, and try it in a handler)

Context.CopyFolder(
  source: string,
  destination: string
): boolean
AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (CopyFolder); FileUtil.cs (opens in a new tab) (CopyDirectory, CopyDirectoryFiles).

Copies the folder source with all its files and subfolders into destination (both full paths), creating the destination folders. Files that already exist at the destination are not overwritten, and files that fail to copy are skipped silently. Throws if source doesn't exist; returns true.

AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (CopyFolder); FileUtil.cs (opens in a new tab) (CopyDirectory, CopyDirectoryFiles).
  • source: Full path of the folder to copy, with all its subfolders.
  • destination: Full path of the target folder, created if missing; files already there are not overwritten (copy errors are ignored).
Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop