#include <Mfs.h>
Public Member Functions | |
MFileSystem (char *File=0) | |
Constructor. | |
virtual | ~MFileSystem () |
Destructor. | |
bool | CreateNewSystem (char *File) |
Create a new file system in a file. | |
bool | OpenSystem (char *File) |
Open an existing file system. | |
bool | CloseSystem () |
Close the current file system. | |
char * | GetCurrentFile () |
Returns the current volume file name. | |
bool | Commit () |
Commits all outstanding changes to metadata. | |
bool | CreateFolder (char *Path) |
Creates a new folder or ignores the existing one. | |
bool | DeleteFolder (char *Path) |
Deletes an existing folder. | |
bool | DeleteFile (char *File) |
Deletes the given file in the file system. | |
bool | MoveFile (char *To, char *From, int64 *Progress=0) |
Moves a file to a new location. | |
bool | CopyFile (char *To, char *From, int64 *Progress=0) |
Copies a file to a new location. | |
Friends | |
class | MFileQuery |
class | MMetaData |
class | MFile |
/file /author Matthew Allen /brief A filesystem in a file.
This library takes some things from various popular filesystems such as BeOS's BFS and Linux's Reiser4 and combines them at a simple level to create a lightweight file system with transactions, arbitary indexed metadata, live queries and small code size. What it doesn't attempt to do is be blindingly fast or useful to everyone. Neither does it try and be a real filesystem in a block device. It stores data in a file, like a database would.