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

Method put_directory

atomic-core/src/pristine/txn/write/mod.rs:2144–2148  ·  view source on GitHub ↗
(&mut self, inode: Inode, flags: u8)

Source from the content-addressed store, hash-verified

2142 }
2143
2144 fn put_directory(&mut self, inode: Inode, flags: u8) -> PristineResult<()> {
2145 let mut table = self.txn.open_table(DIRECTORIES)?;
2146 table.insert(inode.get(), flags)?;
2147 Ok(())
2148 }
2149
2150 fn del_directory(&mut self, inode: Inode) -> PristineResult<Option<u8>> {
2151 let mut table = self.txn.open_table(DIRECTORIES)?;

Calls 2

getMethod · 0.65
insertMethod · 0.45