Re: Rox's directory caching
Thomas Leonard <[email protected]> Sun, 17 Aug 2008 10:18:05 +0000 (UTC)
| Newsgroups | gmane.comp.desktop.rox.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 15 Aug 2008 12:38:49 -0500, Alex Austin wrote: > On Wed, Aug 13, 2008 at 3:21 PM, Thomas Leonard <[email protected]> > wrote: > >> 2008/8/13 Lennon Cook <[email protected]>: >> > rox-filer currently caches the contents of directories, including >> > MIME types, for a certain amount of time. >> >> I haven't looked at the code for a while, but I don't remember it doing >> that. If it re-reads a directory (which it will do when it detects a >> change) it should work out the type again. The talk of 'caches' in the >> xdgmime code is (I think) about caching the MIME database rather than >> the results. >> >> I opened a filer window and then, in an xterm, did: >> >> $ touch test >> $ rm test; echo '#!/usr/bin/env python' > test >> > What if you don't rm test? Keep the inode the same? Still works for me: $ touch test2 $ echo '#!/usr/bin/env python' >> test2 $ touch some-new-file (you have to change the directory in some way just to generate an event that will cause the filer to rescan it, but as soon as it rescans it sees the new type) Using the newer inotify it should be possible to get notified when a file inside a directory changes, even when the directory itself doesn't. ROX- Filer currently uses dnotify, except on the gio branch, which uses whatever gio uses. -- Dr Thomas Leonard http://rox.sourceforge.net GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/