Colleagues,
Imagine you have files coming from a client via FTP.
This file is detected by some program, and then moved from FTP server to another (pre-production or production) server's directory.
There's a service program, that monitors these files' "arrivals" and "departures", and logs the file's attributes and From/To location into a table in a database.
Now, imagine that the file arrived to the designated directory on a Pre-Prod server, but then just disappeared w/o a trace... (And client then calls and inquires "Where's my data/paycheck/invoice/etc.?!" :-()
Problema!
There's a class FileSystemWatcher in .NET (since at least VS 2005) that detects - and can report or log - a file's creation, modification and deletion,
but,
AFAIK, it can't detect who or what deleted this file. (see here
And the Question is: how to detect who/what deleted, or renamed, or moved a file?
(The problem is, it may not be a logged in End User but some resident/service program working behind the scene...)
AHWBGA!
Regards,
Ilya
Imagine you have files coming from a client via FTP.
This file is detected by some program, and then moved from FTP server to another (pre-production or production) server's directory.
There's a service program, that monitors these files' "arrivals" and "departures", and logs the file's attributes and From/To location into a table in a database.
Now, imagine that the file arrived to the designated directory on a Pre-Prod server, but then just disappeared w/o a trace... (And client then calls and inquires "Where's my data/paycheck/invoice/etc.?!" :-()
Problema!
There's a class FileSystemWatcher in .NET (since at least VS 2005) that detects - and can report or log - a file's creation, modification and deletion,
but,
AFAIK, it can't detect who or what deleted this file. (see here
And the Question is: how to detect who/what deleted, or renamed, or moved a file?
(The problem is, it may not be a logged in End User but some resident/service program working behind the scene...)
AHWBGA!
Regards,
Ilya