cow provides two functions to provide platform-specific copy-on-write for files:
copyFile :: FilePath -> FilePath -> IO ()copyFileOnlyIfCopyOnWrite :: FilePath -> FilePath -> IO (Either CopyError ())
cow supports copy-on-write semantics on Windows, Linux, and Darwin, where available.