Stdune.IoSourceIO operations.
val setup_copy :
?chmod:(int -> int) ->
src:path ->
dst:path ->
unit ->
in_channel * out_channelreads a file and prints its contents to stdout or the specified channel
Symlink with fallback to copy on systems that don't support it.
portable_symlink ~src ~dst will create dst as a symbolic link pointing to src. On Windows, it will simply copy src to dst.
Hardlink with fallback to copy on systems that don't support it.
portable_hardlink ~src ~dst will create dst as a hard link pointing to src. In case of EMLINK or EINVAL it will simply copy src to dst.