(&mut self, name: &str, content: &[u8])
| 107 | } |
| 108 | |
| 109 | async fn put(&mut self, name: &str, content: &[u8]) -> io::Result<()> { |
| 110 | let path = self.dir.join(name); |
| 111 | let mut output = OpenOptions::new().create(true).write(true).truncate(true).open(path)?; |
| 112 | output.write_all(content)?; |
| 113 | output.sync_all() |
| 114 | } |
| 115 | |
| 116 | fn system_path(&self, name: &str) -> Option<PathBuf> { |
| 117 | Some(self.dir.join(name)) |