copy

fnvoid copy(RF, RT)(RF from, RT to, PreserveAttributes preserve = preserveAttributesDefault) if (isSomeFiniteCharInputRange!RF && !isConvertibleToString!RF && isSomeFiniteCharInputRange!RT && !isConvertibleToString!RT)

Copy file from _to file to. File timestamps are preserved. File attributes are preserved, if preserve equals Yes.preserveAttributes. On Windows only Yes.preserveAttributes (the default on Windows) is supported. If the target file exists, it is overwritten.

Parameters

fromstring or range of characters representing the existing file name
tostring or range of characters representing the target file name
preservewhether to _preserve the file attributes

Throws

FileException on error.
fnvoid copy(RF, RT)(auto ref RF from, auto ref RT to, PreserveAttributes preserve = preserveAttributesDefault) if (isConvertibleToString!RF || isConvertibleToString!RT)

ditto