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.
Mael.
--
Mael Hilléreau
http://mael.hillereau.free.fr