hard
or symbolic
.
With some limitations, these functions also work on Windows. First of all, the underlying filesystem must support links. This requires NTFS. Second, symbolic links are only supported in Vista and later.
- Errors
domain_error(link_type, Type)
if the requested link-type is unknown or not supported on the target OS.