Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 golang 访问和修改存储在 NTFS 备用数据流中的元数据?
我已经知道https://github.com/pkg/xattr用于访问存储在 linux 下的扩展属性中的元数据。但是,我需要 NTFS 的类似功能。
在 NTFS 中打开文件时,可以使用 ":StreamName" 语法访问备用数据流。
ads, err := os.Open("C:\Path\To\My\File:MyHiddenStream") if err != nil { panic(err) }