Function Directory.copy

Copies the from file to the to destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. Returns one of the error code constants (OK on success).

godot.core.defs.GodotError copy (
  const(String) from,
  const(String) to
) nothrow @nogc;