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.45
resolve_destinationMethod · 0.45
main_worktree_rootFunction · 0.45
get_repo_nameMethod · 0.45
run_deferred_observationFunction · 0.45
collectFunction · 0.45
receipts_on_diskFunction · 0.45
skill_nameFunction · 0.45
is_daily_fileFunction · 0.45
namesFunction · 0.45
hooks_installedMethod · 0.45

Calls

no outgoing calls

Tested by 15

hooks_installedMethod · 0.36
collectFunction · 0.36
worktree_bytesFunction · 0.36
log_filesFunction · 0.36
worktree_snapshotMethod · 0.36
transfer_to_clientFunction · 0.36
transfer_to_clientFunction · 0.36
clear_worktreeFunction · 0.36
collectFunction · 0.36