Copyright © 2008 Jacob Torrey
Authors: Jacob Torrey (torreyji@clarkson.edu).
| create/5 | Creates a file. |
| delete/1 | Deletes the file FID. |
| file_size/1 | Returns the filesize of Fid. |
| get_dir/0 | Returns the fsdir. |
| get_filesystem_size/0 | Returns the used size of the filesystem. |
| get_max_size/0 | Get the max allowed size for this node's filesystem. |
| get_new_fid/0 | returns a unique FID. |
| read_file/1 | Reads in an entire file, outputs as a binary. |
| replicate/1 | Replicates the file FID to the local disk. |
| write_file/2 | Writes a binary Bin to file Fid. |
create(FilenameDir::atom(), Mode::int(), Owner::atom(), Group::atom(), Data::binary()) -> {atomic, ok} | {error, Reason}
Creates a file
delete(Fid::int) -> ok | {error, Reason}
Deletes the file FID
Returns the filesize of Fid
get_dir() -> atom()
Returns the fsdir
get_filesystem_size() -> int()
Returns the used size of the filesystem
get_max_size() -> int()
Get the max allowed size for this node's filesystem
get_new_fid() -> int()
returns a unique FID
read_file(Fid::int()) -> binary()
Reads in an entire file, outputs as a binary
replicate(Fid::int()) -> {atomic, ok} | {error, Reason}
Replicates the file FID to the local disk
write_file(Fid::int(), Bin::binary()) -> ok | {error, Reason}
Writes a binary Bin to file Fid
Generated by EDoc, Mar 17 2008, 11:36:20.