Page 1 of 1

"Blind" copy of folder

Posted: 2012-11-07, 07:12 UTC
by Sektor
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.

Posted: 2012-11-07, 07:40 UTC
by EricB
Hi Sektor,

When using the Synchronize Directories feature with Asymmetric checkbox on, all orphan files on the right panel will be marked for deletion. This is what you are aiming for isn't it?

Regards, EricB

Posted: 2012-11-07, 09:16 UTC
by Sektor
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).

Posted: 2012-11-07, 11:52 UTC
by Horst.Epp
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).
You don't understand Synchronize Dir at all !
It does exactly what you want.

Posted: 2012-11-08, 21:23 UTC
by Balderstrom
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.

Posted: 2012-11-09, 22:55 UTC
by sqa_wizard
Synchronize Dirs with Asymmetric checked/enabled
You just have to enable it BEFORE pressing "Compare" button ;)

Posted: 2012-11-10, 13:13 UTC
by MVV
It is also possible to create buttonbar button that will move/rename/delete all target folders according to selection and then open usual copy/move dialog.