|
Holumbus.FileSystem.Storage | Portability | portable | Stability | experimental | Maintainer | Stefan Schmidt (stefanschmidt@web.de) |
|
|
|
|
|
Description |
Version : 0.1
This Module contains the typeclass of a storage and the associated datatypes.
|
|
Synopsis |
|
|
|
|
file datatypes
|
|
|
The file-identifier, should be unique in the whole system and
be an instance of the classes show, eq, ord and binary
|
|
|
|
file operation
|
|
|
|
metadata
|
|
|
metadata of a file, known by the storage.
| Constructors | MkFileData | | fd_FileId :: FileId | filename
| fd_Size :: Integer | filesize
| fd_CreationDate :: UTCTime | creation date
| fd_LastModifiedDate :: UTCTime | last modified date
| fd_Hashvalue :: Integer | hash value
|
|
| Instances | |
|
|
|
Create a new file data item.
|
|
|
Updates a new file data item with the date, size and hash value of
an old one. First parameter is the new item, second the old one.
|
|
storage typeclass
|
|
|
The interface of a storage.
| | Methods | | Initialize the storage.
| | | Deinitialize the storage.
| | | Create a new file in the storage.
Overwrite the file if it already exists.
| | | Delete a file in the storage.
Nothing happens if the file doesn't exist
| | | Append the content of the file.
Create a new file, if it doesn't already exist
| | | Check if the file is already in the storage
| | | Get the content of a file.
Return Nothing, if the file doesn't exist
| | | Get the metadata of a file.
Return Nothing, if the file doesn't exist
| | | List the files in the storage
|
| | Instances | |
|
|
Produced by Haddock version 2.4.2 |