RFs::NotifyChange - Which file folder changed?
| Thu, 2008-06-12 10:57 | |
|
I`m trying to monitor the phones entire file system with RFs::NotifyChange. I receive notification when a change occurs, but how do I know which file/folder changed? There doesn't seem to be a built in RFs function to do this, and it seems impractical to scan the entire file system each time for the changed file. What is the easiest, most efficient way to determine which file was modified after change notification? |
|






Forum posts: 1152
If you use "NotifyChange RFs" as search terms for Forum Search (upper-right corner) you will see that this subject has come up many times already.
As far as I know, so far nobody has found anything else than what is documented in the SDK, which is - as you mentioned - rather little. Or, if more sophisticated watching of file system changes is possible, the knowledge how to do it is not public.
René Brunner
Forum posts: 1918
NotifyChange is rather easy to use (simply wrap the call in an active object and you will be notified of the change). However, you can only be notified of a change in a directory (which means adding or deleting a file, not writing into a file already present in the directory) or in a single file. Not on the whole file system nor any file modification in a given directory.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant