We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Path
Url
1 parent 76fe6d7 commit a209f20Copy full SHA for a209f20
yazi-binding/src/path.rs
@@ -115,6 +115,9 @@ impl UserData for Path {
115
cached_field!(fields, stem, |lua, me| {
116
me.stem().map(|s| lua.create_string(s.encoded_bytes())).transpose()
117
});
118
+
119
+ fields.add_field_method_get("is_absolute", |_, me| Ok(me.is_absolute()));
120
+ fields.add_field_method_get("has_root", |_, me| Ok(me.has_root()));
121
}
122
123
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M) {
0 commit comments