Logo

Programming-Idioms

  • Rust

Idiom #228 Copy a file

Copy the file at path src to dst.

use std::fs;
fs::copy(src, dst).unwrap();
with Ada.Directories;
Ada.Directories.Copy_File (Source_Name => Src,
                           Target_Name => Dst);

New implementation...