Search code examples
c++filesystemsntfsfat32file-attributes

Custom file attribute in FAT32 and NTFS


I want the ability add custom property/tag to a file with any file extension. For example file.txt or file.pdf or file.jpg should all store and carry properties like 'custom tag'. The tag should be stored with the file itself. Such that if it is transferred from NTFS file system to usb-disk with FAT32 file system and vice-versa it retains the tag.

How do I make this possible using c++? Any application that already does this?

Thank you


Solution

  • If you need to support both NTFS and FAT32 (and maybe more), you'd probably be fine with extended attributes, see https://en.wikipedia.org/wiki/Extended_file_attributes