diff --git a/src/storage/file/mod.rs b/src/storage/file/mod.rs index 14b4e1e3..16a072ef 100644 --- a/src/storage/file/mod.rs +++ b/src/storage/file/mod.rs @@ -40,6 +40,10 @@ impl File { &self.header } + pub fn set_header(&mut self, new_header: FileHeaderData) { + self.header = new_header; + } + pub fn data(&self) -> &String { &self.data }