Create a hard link from from to to, or return an error.

Synopsis

Declared in <llvm/Support/FileSystem.h>

std::error_code
create_hard_link(
    Twine const& to,
    Twine const& from);

Return Value

errc::success if the link was created, otherwise a platform specific error_code.

Parameters

Name

Description

to

The path to hard link to.

from

The path to hard link from. This is created.

Created with MrDocs