| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| File types | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <filesystem> | ||
void copy_symlink(conststd::filesystem::path& from, conststd::filesystem::path& to); | (1) | (since C++17) |
void copy_symlink(conststd::filesystem::path& from, conststd::filesystem::path& to, | (2) | (since C++17) |
Copies a symlink to another location.
f iscreate_symlink orcreate_directory_symlink depending on whetherfrom resolves to a file or directory.f iscreate_symlink orcreate_directory_symlink depending on whetherfrom resolves to a file or directory.Contents |
| from | - | path to a symbolic link to copy |
| to | - | destination path of the new symlink |
| ec | - | out-parameter for error reporting in the non-throwing overload |
(none)
Any overload not markednoexcept may throwstd::bad_alloc if memory allocation fails.
| This section is incomplete Reason: no example |
(C++17) | copies files or directories (function)[edit] |
(C++17) | copies file contents (function)[edit] |
(C++17)(C++17) | creates a symbolic link (function)[edit] |
(C++17) | obtains the target of a symbolic link (function)[edit] |