Is it possible to access a file before it's deleted when using FileSystemWatcher.OnDeleted
event?
I'm storing some data about the document itself in its metadata and i need that info before it's deleted.
Any Ideas how to accomplish this with or without FileSystemWatcher
if it's even possible ?
Update ://
I realized that storing the data in the file is bad as i cannot access it when file is deleted.
Solution : rewrite my app to store the data in a local database(sqlite/xml or something like that) as i get the full path and name when the file is being created/renamed/updated/deleted it would be easier to update the database record for the file.
Thanks to all for the ideas and suggestions!