On Tue, Jun 05, 2007 at 11:05:19AM +0200, Mael Hilléreau wrote:
> Le 4 juin 07 à 10:00, Jean-Marc Lasgouttes a écrit :
> 
> >The more I think about it, the more I think that adapting the crc
> >computation to directories is the way to go. It could be useful on
> >other OSes to accept directories as file names.
> 
> I made a new patch in which directories (graphics) are monitored, but  
> only through the timestamp (this solution works for omnigraffle  
> packages since the directory is "touched" by the software each time a  
> figure is saved). I have two questions.
> 
> Firstly, could you explain why do you think it's needed to add a CRC  
> computation to this checking?
> 
> Secondly, how do you imagine a CRC algorithm for directories? I can  
> see two different possibilities:
> 
> * Compute CRC for all included files (and subdirectories??), and then  
> mix them? Then how to mix?
> 
> * Tar or zip the package and then compute CRC for the resulting file?
> 
> Don't you think it would be somewhat heavy when dealing with big  
> directories (including many files)? (monitoring implies one operation  
> per second, approximatively)
> 
> I'm waiting for your comments.

We should use QFileSystemWatcher instead of reinventing the wheel.

Andre'

Reply via email to