dim-0.5.5-pb3 Fixed a bug in update_sum() for symlinks. To find regular file changes, we use the following expression: find versiondir -type f '(' -cnewer scanfile -o -links 1 ')'
The empty file scanfile stores the time of the last scan. The version directory is maintained by 'dim add|del'. Files in the version directory are hard linked to the corresponding file in the clone directory. After the user changes the contents of a file in the clone, either 1. the hard link is preserved, and the change is detected by -cnewer scanfile 2. or the hard link is broken, and the change is detected by -links 1 For symlinks, we cannot use the hard link trick, because hardlinking symlinks is not portable. We have to use an absolute scan each time: find versiondir -type l Work in progress - Do not use this version! -- Archive: http://www.mail-archive.com/dim@ml.free.fr/ To unsubscribe: mailto:dim-requ...@ml.free.fr?subject=unsubscribe