GNOME Bugzilla – Bug 140800
Return value of FAMMonitorDirectory() and FAMMonitorFile() is not checked
Last modified: 2004-12-22 21:47:04 UTC
See file-method.c:2325. What does FAM return if the directory does not exist in the first place?
If FAM does return an error in this case, and if gnome-vfs checked it, it would mean that a cleaner solution for bug #140095 is possible --- for now I added a gnome_vfs_uri_exists() check to GtkFileSystemGnomeVFS, but that should not be needed.
Monitoring a non existing file/directory is not an error with fam. You'll just not get an EXISTING event, but you'll get told later when/if the directory shows up.
Still, shouldn't we do something sensible if those calls return an error?
I've checked the FAM sources and those calls don't ever return errors. Sigh. I'll do something different for the file chooser backend, then.