copy_file Function
Copies the attributes and contents in one file and pastes them in another file.
bool copy_file(const path& Pval1, const path& Pval2, copy_options = copy_options::none); bool copy_file(const path& Pval1, const path& Pval2, error_code&) noexcept; bool copy_file(const path& Pval1, const path& Pval2, copy_options Opt, error_code& Err) noexcept;
Use the copy Function to copy entire directory trees.
Show: