Create a symbolic link from from to to.
Declared in <llvm/Support/FileSystem.h>
std::error_code
create_symlink(
Twine const& to,
Twine const& from);
This may fail on Windows if run without create symbolic link permissions.
On Windows
slashes in the symlink target are normalized to , and
if to does not exist, it will always create a file symlink.
errc::success if the link was created, otherwise a platform specific error_code.
| Name | Description |
|---|---|
| to | The path to the symlink target. |
| from | The path of the symlink to create. |