create_hard_link 함수
Creates a hard link to an existing file.
template<class Path1, class Path2>
inline void create_hard_link(
const Path1& Pval1,
const Path2& Pval2
);
template<class Path1, class Path2>
inline error_code create_hard_link(
const Path1& Pval1,
const Path2& Pval2,
error_code& Code
);
매개 변수
Pval1
A Path object that represents the file name of an existing file. Path 는 basic_path 또는 basic_path에서 파생된 형식 중 하나일 수 있습니다.Pval2
A Path object that contains the file name of the hard link.Code
error_code 개체입니다.
반환 값
The second function returns Code.
설명
A hard link is the file system representation of a file by which more than one path references a file in the same volume.
If the hard link cannot be created, the first function throws a basic_filesystem_error.
The second function assigns any error code that is associated with the operation to Code.
요구 사항
헤더: filesystem
Namespace: std::tr2::sys