| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Database.LSMTree.Internal.FS
Contents
Synopsis
- hardLink :: (MonadMask m, PrimMonad m) => HasFS m h -> HasBlockIO m h -> ActionRegistry m -> FsPath -> FsPath -> m ()
- hardLinkDirectoryRecursive :: (MonadMask m, PrimMonad m) => HasFS m h -> HasBlockIO m h -> ActionRegistry m -> FsPath -> FsPath -> m ()
- copyFile :: (MonadMask m, PrimMonad m) => HasFS m h -> ActionRegistry m -> FsPath -> FsPath -> m ()
Hard links
hardLink :: (MonadMask m, PrimMonad m) => HasFS m h -> HasBlockIO m h -> ActionRegistry m -> FsPath -> FsPath -> m () Source #
creates a hard link from
hardLink hfs hbio reg sourcePath destinationPathsourcePath to destinationPath.
Both the source path and destination path should be on the same disk volume.
hardLinkDirectoryRecursive Source #
Arguments
| :: (MonadMask m, PrimMonad m) | |
| => HasFS m h | |
| -> HasBlockIO m h | |
| -> ActionRegistry m | |
| -> FsPath | Source path |
| -> FsPath | Destination path |
| -> m () |
Recursively create hard links for all the directory contents of the source path at the destination path.
Both the source path and destination path should be on the same disk volume.