MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / create_directory

Method create_directory

atomic-repository/src/archive.rs:751–758  ·  view source on GitHub ↗
(&mut self, path: &str, _mode: u32, _mtime: u64)

Source from the content-addressed store, hash-verified

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);

Calls 2

containsMethod · 0.45
insertMethod · 0.45

Tested by 1