# `copy_file` Copy a project file. **Input** — `path` (required, the file to copy), `to` (required, the new copy's path) Only files; directories are refused. Parent directories of the destination are created if they don't exist. An existing file at `to` is refused rather than overwritten. ## Sidecars are not copied Unlike [`move_file`](move_file.md), a copy does **not** take the `.uid` along. A `.uid` carries a resource's identity, and two files sharing one is exactly what the editor rejects. Leaving it out means Godot gives the copy a fresh `.uid` — and reimports an asset for a fresh `.import` — on its next scan. The source is left untouched.