LinusU / fs-xattr

🔖 Node.js module for manipulating extended attributes
MIT License
65 stars 17 forks source link

NTFS support #16

Open LinusU opened 8 years ago

LinusU commented 8 years ago

From https://github.com/nodejs/node/issues/7469#issuecomment-229269664

FWIW NTFS does also have actual Extended Attributes in addition to ADS. You can query and set them via NtQueryEaFile() and NtSetEaFile() respectively. Although NTFS Extended Attribute names are limited to 256 characters and values are limited to ~64KB.

unreadablewxy commented 4 years ago

The 256 char length can be side stepped with unicode APIs. Search for "FindFirstStreamW" in MSDN/Naming Files, Paths, and Namespaces