Re: Directory-change notification (was Re: Desktop)



>> It seems to me that instead of rescanning every opened directory every
>> two seconds and/or giving ourselves troubles with kernel stuff, we could
>> simply take a look every x secondes at the modification time of each
>> directory instead and rescan it if and only if it has been modified.
>> 
>> Would there be any problem from there ?
>> 
>
>The mtime of the directory tells you if files have been added,
>removed, or renamed, but does not tell you if the contents of the file
>or filesystem metadata that lives in the inode has changed.

Does that matter for a graphical file manager? Maybe the names of the files in
the directory are enough information, since the MIME type is guessed based on
the name.

Michael



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]