Synchronize Dirs, CompareDirs and Symlinks

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Synchronize Dirs, CompareDirs and Symlinks

Post by *Balderstrom »

It would be well appreciated if there was at least a few options for dealing with Symlinks within Synchronize Dirs:
1) [x] Symlinks: Get File Date from linked file.
2) [x] Symlinks: Get File Size from linked file.

Usage of the above options:
When a comparison between folders/files is done:
TestFile.txt 20kb 2012/10/15 == TestFile.txt 0kb 2012/8/12
* If SyncDirs options for ignore date is used, or Option#1 above is used.
* If SyncDirs compare by Source is used, The comparison is done against what TestFile.txt LINKS to (since it is a symlink)
* If Option#2 is used, and SyncDirs compare by contents is NOT checked.
(Filesizes are compared)
When the directories are synchronized:
The default would be to copy the linked file (not the symlink itself)
But there should likely be an option (with a warning, and confirmation box perhaps):
[Copy Symlink instead of linked file.]
--- Warning/Caution this may overwrite an existing file with a symlink.
--- --- NOTE: Attempting to copy a symlink onto its source file will fail.
Also what follows from above, the CompareDirs internal command could be expanded with a possible additional command:
cm_CompareDirsParseSymlinks
Post Reply