diff --git a/src/lib/io/mod.rs b/src/lib/io/mod.rs index 46a1ea1..c94c92c 100644 --- a/src/lib/io/mod.rs +++ b/src/lib/io/mod.rs @@ -386,10 +386,7 @@ fn get_xattr_metadata>(xattrs: XAttrs, path: P) -> Result value, - None => Vec::new(), - }; + let value = xattr::get(path.as_ref(), &ext_attr)?.unwrap_or_default(); metadata_ext_map.insert(ext_attr, value.into()); } Ok(metadata_ext_map)