From 65aa98607eda6821bc12c018921408c639d38fe5 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 27 Dec 2015 18:52:25 +0100 Subject: [PATCH] Add File::persist() --- src/storage/file/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/storage/file/mod.rs b/src/storage/file/mod.rs index 9343e1e7..59a2638c 100644 --- a/src/storage/file/mod.rs +++ b/src/storage/file/mod.rs @@ -104,6 +104,17 @@ impl<'a> File<'a> { 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 { self.header.clone() }