| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Database.LSMTree.Internal.FS
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 ()
- data Mode m h
- = HardLink !Bool !(HasBlockIO m h)
- | forall h'. Copy !(HasFS m h')
- hardLinkOrCopyDirectoryRecursive :: (MonadMask m, PrimMonad m) => HasFS m h -> Mode 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.
Copy file
copyFile :: (MonadMask m, PrimMonad m) => HasFS m h -> ActionRegistry m -> FsPath -> FsPath -> m () Source #
copies the file contents of
copyFile hfs reg sourcePath destinationPathsourcePath to the destinationPath.
Hard links with fallback
The file transfer mode to be used by a snapshot import or export.
Constructors
| HardLink | |
Fields
| |
| forall h'. Copy | |
hardLinkOrCopyDirectoryRecursive Source #
Arguments
| :: (MonadMask m, PrimMonad m) | |
| => HasFS m h | The |
| -> Mode m h | Either a |
| -> ActionRegistry m | |
| -> FsPath | Source path |
| -> FsPath | Destination path |
| -> m () |