[][src]Function tokio_xattr::set

pub async fn set<'_, P, N>(path: P, name: N, value: &'_ [u8]) -> Result<()> where
    P: AsRef<Path>,
    N: AsRef<OsStr>, 

Set an extended attribute on the specified file.

Examples

tokio_xattr::set(".", "user.myattr1", &[0x12, 0x34, 0x56]).await?;