std::experimental::filesystem:: copy_symlink
From cppreference.net
<
cpp
|
experimental
|
fs
|
헤더 파일에 정의됨
<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) |
심링크를 다른 위치로 복사합니다.
1)
효과적으로
f
(
read_symlink
(
from
)
, to
)
를 호출합니다. 여기서
f
는
create_symlink
(
)
또는
create_directory_symlink
입니다. 이는
from
이 파일 또는 디렉토리로 확인되는지에 따라 달라집니다.
2)
효과적으로
f
(
read_symlink
(
from, ec
)
, to, ec
)
를 호출합니다. 여기서
f
는
create_symlink
(
)
또는
create_directory_symlink
입니다. 이는
from
이 파일 또는 디렉토리로 확인되는지에 따라 결정됩니다.
목차 |
매개변수
| from | - | 복사할 심볼릭 링크의 경로 |
| to | - | 새로운 심볼릭 링크의 대상 경로 |
| ec | - | non-throwing 오버로드에서 오류 보고를 위한 출력 매개변수 |
반환값
(없음)
예외
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
명세:
noexcept
참고 항목
|
파일 또는 디렉터리 복사
(함수) |
|
|
파일 내용 복사
(함수) |
|
|
심볼릭 링크 생성
(함수) |
|
|
심볼릭 링크의 대상 확인
(함수) |