Re: File event notification

2008-10-24 Thread Robert Martin
You can do all this, but you'll have to set up a database/store to figure out the differences. I store the nodeID/parentID modDate and attributeChangDate as well as the path in order to get 'Delete' 'Change' 'Move' and 'Rename' - 'Add is simple! On Oct 24, 2008, at 4:31 AM, Ardian Lazuardi

Re: File event notification

2008-10-24 Thread Ardian Lazuardi
Hi Stephen, On Oct 24, 2008, at 5:13 PM, Stephen J. Butler wrote: On Fri, Oct 24, 2008 at 3:10 AM, Ardian Lazuardi <[EMAIL PROTECTED]> wrote: Is it impossible to hook the copy procedures, such like windows programmers using shellhook, cbthook, or api hook, so that we can intercept the proc

Re: File event notification

2008-10-24 Thread Stephen J. Butler
On Fri, Oct 24, 2008 at 3:10 AM, Ardian Lazuardi <[EMAIL PROTECTED]> wrote: > Is it impossible to hook the copy procedures, such like windows programmers > using shellhook, cbthook, or api hook, so that we can intercept the process > before system does? You've missed the point. There *is* no copy

Re: File event notification

2008-10-24 Thread Ardian Lazuardi
Is it impossible to hook the copy procedures, such like windows programmers using shellhook, cbthook, or api hook, so that we can intercept the process before system does? By using FSEvent, we can get the changed folder path. Can we get the modified filename exactly (deleted file's filenam

Re: File event notification

2008-10-23 Thread Stephen J. Butler
On Thu, Oct 23, 2008 at 11:44 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > Can't be done. The system has no concept of "copy". A copy simply > means that you read the contents from A, and then write them to B. But > there's no inherent link between the reading and the writing. In other > words, whe

Re: File event notification

2008-10-23 Thread Michael Ash
On Fri, Oct 24, 2008 at 12:16 AM, Ardian Lazuardi <[EMAIL PROTECTED]> wrote: > > Hello, > > Apparently I need to add a function that letting us know the changes in a > volume. > > I want to log any activities within my volume. > e.g. : > - file copied from Volume A to Volume B > - file moved from V

File event notification

2008-10-23 Thread Ardian Lazuardi
Hello, Apparently I need to add a function that letting us know the changes in a volume. I want to log any activities within my volume. e.g. : - file copied from Volume A to Volume B - file moved from Volume A to Volume B - file deleted from Volume B - file opened by an application - etc...