The idea is the following.
I have same folder name in both panels. Say, I want to copy this folder from left panel to right. So, what I want is the folder in the right panel to be fully deleted before copying the folder in left panel.
The reason is the following. I have one project which I do on two computers. When I'm done on first computer, I copy data to flash drive and copy it to second computer. The problem is that some project's files can be deleted on first computer, but on the second computer this old file will stay because no file from first computer will overwrite it. Thus, lots of orphans can appear. This can be done thru some checkbox.
"Blind" copy of folder
Moderators: Hacker, petermad, Stefan2, white
No, this is not what I am after.
Say, you have two folders containing some files:
1) Left panel (flash drive): F:\Project\
Files:
file1.txt
file2.txt
file3.txt
2) Right panel (hard drive): C:\Data\Project\
Files:
file1.txt
file2.txt
file3.txt
Say, because of some reason you delete file2.txt from left panel. After that we have extra file file2.txt in right panel which we don't need.
If I copy folder "Project" from left panel to right, then file2.txt will be still there, which is not what I want.
So, what I want is when I press F5 on the "Project" folder in left panel (and ticking some checkbox), TC will detect same folder name in right panel. And if it detects it, it deletes it completely. After deletion the "Project" folder from left panel is copied to the right.
In other words, detect same folder name in opposite panel and delete it before operation (copying or moving).
Say, you have two folders containing some files:
1) Left panel (flash drive): F:\Project\
Files:
file1.txt
file2.txt
file3.txt
2) Right panel (hard drive): C:\Data\Project\
Files:
file1.txt
file2.txt
file3.txt
Say, because of some reason you delete file2.txt from left panel. After that we have extra file file2.txt in right panel which we don't need.
If I copy folder "Project" from left panel to right, then file2.txt will be still there, which is not what I want.
So, what I want is when I press F5 on the "Project" folder in left panel (and ticking some checkbox), TC will detect same folder name in right panel. And if it detects it, it deletes it completely. After deletion the "Project" folder from left panel is copied to the right.
In other words, detect same folder name in opposite panel and delete it before operation (copying or moving).
You don't understand Synchronize Dir at all !Sektor wrote:No, this is not what I am after.
Say, you have two folders containing some files:
1) Left panel (flash drive): F:\Project\
Files:
file1.txt
file2.txt
file3.txt
2) Right panel (hard drive): C:\Data\Project\
Files:
file1.txt
file2.txt
file3.txt
Say, because of some reason you delete file2.txt from left panel. After that we have extra file file2.txt in right panel which we don't need.
If I copy folder "Project" from left panel to right, then file2.txt will be still there, which is not what I want.
So, what I want is when I press F5 on the "Project" folder in left panel (and ticking some checkbox), TC will detect same folder name in right panel. And if it detects it, it deletes it completely. After deletion the "Project" folder from left panel is copied to the right.
In other words, detect same folder name in opposite panel and delete it before operation (copying or moving).
It does exactly what you want.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
Synchronize Dirs can be confusing at times - when trying to figure out which Panel is the Source, and which is the Target.
It would benefit Ghisler's users if he would include an internal SyncDirs command that got rid of requirements to use so many line-command flags to enforce Left/Right Source/Target.
Yet, as EricB and Horst.Epp have stated, Synchronize Dirs with Asymmetric checked/enabled will do exactly as you request, orphaned files are deleted in the target that don't exist in the source.
It would benefit Ghisler's users if he would include an internal SyncDirs command that got rid of requirements to use so many line-command flags to enforce Left/Right Source/Target.
Yet, as EricB and Horst.Epp have stated, Synchronize Dirs with Asymmetric checked/enabled will do exactly as you request, orphaned files are deleted in the target that don't exist in the source.
- sqa_wizard
- Power Member
- Posts: 3896
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany