cp

Function for copying files and directories.

void
cp
(
string from
,
string to
,
Flag!"followLinks" followLinks = No.followLinks
,
Flag!"passErrors" passErrors = No.passErrors
,
Flag!"printErrors" printErrors = Yes.printErrors
)

Parameters

from string

source file

to string

destination

whether to follow symbolic links

passErrors Flag!"passErrors"

if No, the 'cp' function can throw exceptions else errors are ignored

printErrors Flag!"printErrors"

print information about errors or not (the parameter works if passErrors is Yes)

Meta