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

Method extension

atomic-repository/src/archive.rs:170–177  ·  view source on GitHub ↗

Get the file extension for this format.

(&self)

Source from the content-addressed store, hash-verified

168impl ArchiveFormat {
169 /// Get the file extension for this format.
170 pub fn extension(&self) -> &'static str {
171 match self {
172 Self::TarGz => ".tar.gz",
173 Self::Tar => ".tar",
174 Self::Directory => "",
175 Self::Zip => ".zip",
176 }
177 }
178
179 /// Detect format from a path.
180 pub fn from_path(path: &Path) -> Option<Self> {

Callers 15

wip_census_classFunction · 0.80
collect_top_level_locksFunction · 0.80
collect_locks_recursiveFunction · 0.80
list_lifecyclesFunction · 0.80
cleanup_expiredFunction · 0.80
change_countFunction · 0.80
corpus_identityFunction · 0.80
redb_filesFunction · 0.80
pendingFunction · 0.80
list_sessionsMethod · 0.80

Calls

no outgoing calls

Tested by 6

change_countFunction · 0.64
corpus_identityFunction · 0.64
redb_filesFunction · 0.64
scanFunction · 0.64