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

Method parent

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

Get the parent directory of the path.

(&self)

Source from the content-addressed store, hash-verified

102
103 /// Get the parent directory of the path.
104 pub fn parent(&self) -> Option<&str> {
105 Path::new(&self.path).parent()?.to_str()
106 }
107
108 /// Check if this refers to the root of a file (line 0 or 1).
109 #[inline]

Callers 15

default_destMethod · 0.80
run_pushMethod · 0.80
apply_stashMethod · 0.80
format_upgrade_messageFunction · 0.80
move_file_on_diskMethod · 0.80
restore_fileMethod · 0.80
newMethod · 0.80
write_commitMethod · 0.80
parse_commitFunction · 0.80
validate_target_pathFunction · 0.80

Calls

no outgoing calls