Garden 🌻

__fs.gdn::copy_file()

Copy the file from src to dest.

If dest already exists, its content is replaced with the content from src.

Example
import "__fs.gdn" as fs
fs::copy_file(Path{ p: "/tmp/source.txt" }, Path{ p: "/tmp/destination.txt" })
Source Code
public fun copy_file(src: Path, dest: Path): Result<Unit, String> {
  __BUILT_IN_IMPLEMENTATION
}