B:BD[
7.98] → [
6.21288:21343]
B:BD[
6.21343] → [
5.15226:15327]
B:BD[
5.15327] → [
8.36:196]
let inode = crate::fs::create_new_inode(txn)?;
put_tree_with_rev(txn, &file_id, &inode)?;
put_inodes_with_rev(txn, &inode, &dest)?;
if meta.is_dir() {
let id = OwnedPathId {
parent_inode: inode,
basename: SmallString::new(),
};
txn.put_tree(&id, &inode)?;
let file_id = OwnedPathId {
parent_inode,
basename,
};
if txn.get_tree(&file_id, None)?.is_none() {
let inode = crate::fs::create_new_inode(txn)?;
put_tree_with_rev(txn, &file_id, &inode)?;
put_inodes_with_rev(txn, &inode, &dest)?;
if meta.is_dir() {
let id = OwnedPathId {
parent_inode: inode,
basename: SmallString::new(),
};
txn.put_tree(&id, &inode)?;
}
Ok(Some(inode))
} else {
Ok(None)