Namespaces
Variants

std::experimental::filesystem:: copy_symlink

From cppreference.net
Definido en el encabezado <experimental/filesystem>
void copy_symlink ( const path & from, const path & to ) ;
(1) (filesystem TS)
void copy_symlink ( const path & from, const path & to,
error_code & ec ) ;
(2) (filesystem TS)

Copia un enlace simbólico a otra ubicación.

1) Efectivamente llama f ( read_symlink ( from ) , to ) donde f es create_symlink ( ) o create_directory_symlink dependiendo de si from resuelve a un archivo o directorio.
2) Efectivamente llama f ( read_symlink ( from, ec ) , to, ec ) donde f es create_symlink ( ) o create_directory_symlink dependiendo de si from se resuelve a un archivo o directorio.

Contenidos

Parámetros

from - ruta al enlace simbólico a copiar
to - ruta de destino del nuevo enlace simbólico
ec - parámetro de salida para reporte de errores en la sobrecarga que no lanza excepciones

Valor de retorno

(ninguno)

Excepciones

The overload that does not take an error_code & parameter throws filesystem_error on underlying OS API errors, constructed with from as the first argument, to as the second argument, and the OS error code as the error code argument. std:: bad_alloc may be thrown if memory allocation fails. The overload taking an error_code & parameter sets it to the OS API error code if an OS API call fails, and executes ec. clear ( ) if no errors occur. This overload has
noexcept especificación:
noexcept

Véase también

copia archivos o directorios
(función)
copia contenidos de archivos
(función)
crea un enlace simbólico
(función)
obtiene el destino de un enlace simbólico
(función)