[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Re: KDirLister keeps mounted devices in use
From: Michael Brade <brade () kde ! org>
Date: 2003-01-08 11:37:00
[Download RAW message or body]
On Wednesday 08 January 2003 00:17, Waldo Bastian wrote:
> Instead of relying on KDirWatch, can't you somehow check whether the cache
> is still valid before you reuse it? Maybe something like:
>
> check mtime/ctime of dir
> if modified
> throw away cache
> else
> show cache
> validate (and update) cached items
>
> Checking the mtime/ctime should detect new/deleted files I think, so you
> only need to validate to update any file attributes (time/size)
Yes, new and deleted files. But as it was said already, we want size changes
as well. That's all what KDirWatch is for...
> You could also check with KIO::probably_slow_mounted and keep using
> KDirWatch when it isn't slow.
Ok, will have a look.
--
Michael Brade; KDE Developer, Student of Computer Science
|-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
°--web: http://www.kde.org/people/michaelb.html
KDE 3: The Next Generation in Desktop Experience
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic