feat:update xattr-rs

This commit is contained in:
2025-01-18 14:41:50 +08:00
parent d20f13c06b
commit 968309fff5
3 changed files with 5 additions and 4 deletions

View File

@@ -80,8 +80,8 @@
}, },
"xattr.rs": { "xattr.rs": {
"script_name": "xattr.rs", "script_name": "xattr.rs",
"script_length": 1822, "script_length": 1868,
"script_sha256": "b49aadee8bdb76217ee3ce880b1ac8fbcc2af14a7c99053a7e847079ef5822b4", "script_sha256": "e558bc16c70801aaca9bf943a45e6fc90ec925e6fe34a245cea68daca7b45afa",
"script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/xattr-rs/src/main.rs" "script_full_url": "https://git.hatter.ink/rust-scripts/scriptbase/raw/branch/main/xattr-rs/src/main.rs"
} }
} }

View File

@@ -61,7 +61,7 @@
}, },
"xattr-rs": { "xattr-rs": {
"script_name": "xattr-rs", "script_name": "xattr-rs",
"script_length": 1822, "script_length": 1868,
"script_sha256": "b49aadee8bdb76217ee3ce880b1ac8fbcc2af14a7c99053a7e847079ef5822b4" "script_sha256": "e558bc16c70801aaca9bf943a45e6fc90ec925e6fe34a245cea68daca7b45afa"
} }
} }

View File

@@ -20,6 +20,7 @@ fn main() {
failure!("Error read file: {filename}, error: {e}"); failure!("Error read file: {filename}, error: {e}");
} }
Ok(xattrs) => { Ok(xattrs) => {
println!("File: {filename}");
for (_, xattr) in xattrs.enumerate() { for (_, xattr) in xattrs.enumerate() {
let clone_xattr = xattr.clone(); let clone_xattr = xattr.clone();
let xattr_name = match clone_xattr.to_str() { let xattr_name = match clone_xattr.to_str() {