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

Method file_name

atomic-core/src/change/local.rs:99–101  ·  view source on GitHub ↗

Get the file name portion of the path.

(&self)

Source from the content-addressed store, hash-verified

97
98 /// Get the file name portion of the path.
99 pub fn file_name(&self) -> Option<&str> {
100 Path::new(&self.path).file_name()?.to_str()
101 }
102
103 /// Get the parent directory of the path.
104 pub fn parent(&self) -> Option<&str> {

Callers 15

default_destMethod · 0.80
resolve_destinationMethod · 0.80
get_repo_nameMethod · 0.80
matchesMethod · 0.80
load_identity_by_idFunction · 0.80
listMethod · 0.80
take_snapshotFunction · 0.80
write_settingsFunction · 0.80
newMethod · 0.80
with_detailsMethod · 0.80

Calls

no outgoing calls