Hi,
I think GWorkspace does something like that and it uses the fswatcher
daemon, but I never checked the details.
Riccardo
On 01/11/2012 10:28 AM, Andreas Höschler wrote:
Hi all,
my tool needs to get aware of any changes in the file system under a given
directory (e.g. /home), for example if
• a new file is created in /home/tommy/Documents
• a file is removed anywhere below /home
• a file /home/herbert/test.conf gets modified
• ...
I think I have once seen some method of NSFileManager or NSWorkspace that does
exactly that, but I don't know this for sure and I can't find anything suitable
in the class references.
Any idea?
I could for sure iterate through the dir with contentsOfDirectoryAtPath: and
compare the size and attributes of any file with log entries, but this seems
rather cumbersome! :-(
Hints greatly appreciated!
Thanks a lot,
Andreas
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep