copyFile

Copies a file.

Note that attributes and time stamps are currently not retained.

  1. void copyFile(NativePath from, NativePath to, bool overwrite)
  2. void copyFile(string from, string to)
    @safe
    void
    copyFile
    (
    string from
    ,
    string to
    )

Parameters

from string

Path of the source file

to string

Path for the destination file

Throws

An Exception if the copy operation fails for some reason.

Meta