I'm developing file sync client for Windows.
I use ReadDirectoryChangesW
API for detecting file events (modifying, remove, create, etc.).
But ReadDirectoryChangesW
reports NTFS ADS changes same as file modifications.
For example, when eml file is created, OS System add ADS on this file. (stream name is OECustomProperty
). In this case, My Client can't distinguish between main stream and alternate data stream.
How to distinguish between modifying ADS and modifying the main stream?