Module safe_app::ffi::nfs [] [src]

NFS API

Structs

FileContext

Holds context for file operations, depending on the mode.

Statics

FILE_READ_TO_END

Read entire contents of a file.

OPEN_MODE_APPEND

Appends to existing data in the file.

OPEN_MODE_OVERWRITE

Replaces the entire content of the file when writing data.

OPEN_MODE_READ

Open file to read.

Functions

dir_delete_file

Delete the file in the parent directory.

dir_fetch_file

Retrieve file with the given name, and its version, from the directory.

dir_insert_file

Insert the file into the parent directory.

dir_update_file

Replace the file in the parent directory. If version is 0, the correct version is obtained automatically.

file_close

Close is invoked only after all the data is completely written. The file is saved only when close is invoked.

file_open

Open the file to read of write its contents.

file_read

Read data from file.

file_size

Get a size of file opened for read.

file_write

Write data to file in smaller chunks.