Lines Matching refs:name
232 name: &str, in create_with_data()
244 if inode.children.contains_key(name) { in create_with_data()
277 inode.children.insert(String::from(name), result.clone()); in create_with_data()
282 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
300 if inode.children.contains_key(name) { in link()
306 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link()
313 fn unlink(&self, name: &str) -> Result<(), SystemError> { in unlink()
320 if name == "." || name == ".." { in unlink()
325 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink()
332 inode.children.remove(name); in unlink()
336 fn rmdir(&self, name: &str) -> Result<(), SystemError> { in rmdir()
343 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in rmdir()
350 inode.children.remove(name); in rmdir()
373 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find()
380 match name { in find()
388 name => { in find()
390 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()