Copyright | (c) 2024 Illia Shkroba |
---|---|
License | BSD3 |
Maintainer | Illia Shkroba <[email protected]> |
Stability | unstable |
Portability | non-portable (Non-Unix systems are not supported) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PFile.Profile.LinkHandling
Description
Types and functions for handling links.
Documentation
handle :: (MonadError Error m, MonadIO m) => Strategy -> Absolute -> Absolute -> m () Source #
Handle links relocation with Strategy
:
CopyFromOrigin
- copy source link's target to destination.CreateEmpty
- create an empty directory at destination when source link's target is a directory or create an empty file at destination when source link's target is a file.CopyLink
- copy source link to destination.
Since: 0.1.0.0
Error thrown by handle
.
Since: 0.1.0.0
Constructors
CopyDirectoryFromOriginError !CopyError | Error was encountered during |
CopyFileFromOriginError !CopyFileError | Error was encountered during |
CreateEmptyDirectoryError !CreateDirectoryError | Error was encountered during |
CreateEmptyFileError !WriteFileError | Error was encountered during |
CopyLinkError !CopyLinkError | Error was encountered during |
showStrategy :: Strategy -> Text Source #
Link handling strategy for directory/file links to be used by handle
.
Since: 0.1.0.0
Constructors
CopyFromOrigin | Copy source link's target to destination. |
CreateEmpty | Create an empty directory at destination when source link's target is a directory or create an empty file at destination when source link's target is a file. |
CopyLink | Copy source link to destination. |