Lines Matching refs:clone

549             self.check_existence(name, Some(false), fs.clone());  in create_file()
573 fs.clone(), in create_file()
588 self.check_existence(name, Some(true), fs.clone()); in create_dir()
646 fs.clone(), in create_dir()
677 self.find_entry(name, expect_dir, Some(&mut sng), fs.clone()); in check_existence()
720 short_dentry.name = short_name.clone();
731 self.find_free_entries(num_entries, fs.clone())?;
738 FATDirEntryOffsetIter::new(fs.clone(), start_loc, num_entries, None).collect();
746 long_entry.flush(fs.clone(), bytes_offset)?;
788 let e: FATDirEntry = self.find_entry(name, None, None, fs.clone())?; in remove()
791 if e.is_dir() && !(e.to_dir().unwrap().is_empty(fs.clone())) { in remove()
818 FATDirEntryOffsetIter::new(fs.clone(), cluster_range.0, 15, Some(cluster_range.1)) in remove_dir_entries()
840 return Ok(FATDirEntry::Dir(self.clone())); in get_dir_entry()
857 self.check_existence(old_name, None, fs.clone())? in rename()
866 self.check_existence(new_name, None, fs.clone())? in rename()
877 self.remove(fs.clone(), old_dentry.name().as_str(), false)?; in rename()
885 fs.clone(), in rename()
1207 file.short_dir_entry = self.clone(); in to_dir_entry()
1222 dir.short_dir_entry = Some(self.clone()); in to_dir_entry()
1250 file.short_dir_entry = self.clone(); in to_dir_entry_with_long_name()
1263 dir.short_dir_entry = Some(self.clone()); in to_dir_entry_with_long_name()
1709 return f.file_name.clone(); in name()
1712 return s.file_name.clone(); in name()
1715 return d.dir_name.clone(); in name()
1759 let long_name_matches: bool = long_name.eq(name.clone()); in eq_name()
1773 return Ok(f.clone()); in to_file()
1786 return Ok(d.clone()); in to_dir()