Add File::persist()

This commit is contained in:
Matthias Beyer 2015-12-27 18:52:25 +01:00
parent 8029057b22
commit 65aa98607e
1 changed files with 11 additions and 0 deletions

View File

@ -104,6 +104,17 @@ impl<'a> File<'a> {
pub fn edit_contents(rt: &Runtime) -> bool { pub fn edit_contents(rt: &Runtime) -> bool {
} }
/**
* Make file persistent.
*
* Retreive store path from the runtime, file id is already available in self.
*
* Return true if action succeeded, false otherwise.
*/
pub fn persist(rt: &Runtime) -> bool {
unimplemented!()
}
pub fn header(&self) -> FileHeaderData { pub fn header(&self) -> FileHeaderData {
self.header.clone() self.header.clone()
} }