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

Method listing

atomic-repository/src/worktree_presence.rs:75–81  ·  view source on GitHub ↗
(&mut self, directory: &Path)

Source from the content-addressed store, hash-verified

73 }
74
75 fn listing(&mut self, directory: &Path) -> io::Result<Option<&DirectoryListing>> {
76 let listing = match self.listings.entry(directory.to_path_buf()) {
77 Entry::Occupied(occupied) => occupied.into_mut(),
78 Entry::Vacant(vacant) => vacant.insert(list_real_directory(directory)?),
79 };
80 Ok(listing.as_ref())
81 }
82}
83
84/// The entries of one real directory.

Callers 1

exact_metadataMethod · 0.80

Calls 3

list_real_directoryFunction · 0.85
as_refMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected