(&mut self, path: &str, _mode: u32, _mtime: u64)
| 749 | } |
| 750 | |
| 751 | fn create_directory(&mut self, path: &str, _mode: u32, _mtime: u64) -> Result<(), Self::Error> { |
| 752 | let full_path = self.root.join(path); |
| 753 | if !self.created_dirs.contains(&full_path) { |
| 754 | std::fs::create_dir_all(&full_path)?; |
| 755 | self.created_dirs.insert(full_path); |
| 756 | } |
| 757 | Ok(()) |
| 758 | } |
| 759 | |
| 760 | fn close_file(&mut self, writer: Self::Writer) -> Result<(), Self::Error> { |
| 761 | drop(writer); |