Copy the contents of From to To.

Synopsis

Declared in <llvm/Support/FileSystem.h>

std::error_code
copy_file(
    Twine const& From,
    Twine const& To);

Return Value

errc::success if the copy succeeded, otherwise a platform‐specific error_code.

Parameters

Name

Description

From

The path to copy from.

To

The path to copy to. This is created.

Created with MrDocs