ΒΆstd::error_code create_link(
const llvm::Twine& to,
const llvm::Twine& from)
std::error_code create_link(
const llvm::Twine& to,
const llvm::Twine& from)
Description
Create a link from \a from to \a to. The link may be a soft or a hard link, depending on the platform. The caller may not assume which one. Currently on windows it creates a hard link since soft links require extra privileges. On unix, it creates a soft link since hard links don't work on SMB file systems.
Declared at: llvm/include/llvm/Support/FileSystem.h:349
Parameters
- const llvm::Twine& to
- The path to hard link to.
- const llvm::Twine& from
- The path to hard link from. This is created.
Returns
errc::success if the link was created, otherwise a platform specific error_code.