Page 1 of 1
Add option in copy dialog for junction
Posted: 2013-11-29, 16:40 UTC
by Otomatic
Hi,
If there is a junction in a directory, when we copy this directory to another place, all the directories and files pointed by the junction are copied.
I ask you to have an option in Copy dialog to not copy junction contents, like option /XJ for robocopy or /B for xcopy.
Regards.
Posted: 2013-11-29, 18:08 UTC
by HolgerK
Don't know if this helps because you are asking for a Copy-Dialog option:
TC 8.5 beta
F1 : 4.b wincmd.ini wrote:CopyLinks=0
Copy file system links (junctions) as links and not as directories:
0: Copy links as dirs or ignore them (if IgnoreLinks has been set)
1: Copy links without changing the target path of the links
2: Copy links and change the target path to the target drive if the link points to the same drive on which the link itself is located.
Example:
c:\path1\link, pointing to c:\path1\path2\linktarget
Copied to d:\trgpath1\trgpath2\link
-> Link now points to d:\trgpath1\trgpath2\path2\linktarget
Note: The function does NOT check whether the target of the link exists or not.
...
IgnoreLinks=0
Allows to ignore hard links (junctions, reparse points) to directories in various functions. Note: The function "Synchronize dirs" uses a separate option "SyncIgnoreJunctions".
Sum of:
1: copy/move/calculate occupied space
2: internal packers (zip, tar)
4: branch view
8: find files
16: ignore links even when they are selected in the current directory. Otherwise only links in selected subdirectories are ignored.
...
SyncIgnoreJunctions=0
0: Also follow junctions (reparse points) to directories when synchronizing
1: Exclude directory junctions from synchronizing
Warning: If a directory with the same name exists on the second side, files in it seem to exist only on that side because the junction on the first side is excluded!
Regards
Holger
Posted: 2013-12-02, 08:55 UTC
by Otomatic
Hi,
Thanks. It helps me.
But it will be permanent options.
I think it will be better (for me) to add these options in the "Advanced options" of the Copy dialog box we have after a right-click drag&drop:
Image:
http://aviatechno.net/files/copy_dialog.jpg
In this way, it will always be possible to temporarily override the default actions.
Regards
Posted: 2013-12-05, 23:40 UTC
by sqa_wizard
I think it will be better (for me) to add these options in the "Advanced options" of the Copy dialog box
Support++
But how to place such an option without overcrowd the dialog?
May like:
Code: Select all
[x] Copy junctions as links
(o) unchanged
( ) adapt to target
Posted: 2013-12-06, 03:46 UTC
by MVV
May like:
Or an addional 'advanced options' combobox...
Posted: 2013-12-06, 15:41 UTC
by HolgerK
Or a single button [Advanced copy options] to show the already existing (or a new) configuration dialog via cm_CopyConfig / cm_AdvancedCopyConfig.
Okay this dialog needs some additional controls for switches from wincmd.ini, but this would be the place where i would search for advanced copy options.
Regards
Holger
Posted: 2013-12-06, 16:37 UTC
by ghisler(Author)
I fear that most people would have no idea what this does, and then complain that files in these "subdirs" aren't copied...
Posted: 2013-12-06, 17:07 UTC
by HolgerK
<joke>
Maybe a barrier like firefox's
about:config would help to prevent complains
This might nuke your data!
Changing these advanced settings can be harmful to the stability, security, and integrity of your data. You should only continue if you are sure of what you are doing.
[x] show this warning next time
[ I'll be careful, I promise! ]
</joke>

Holger
Posted: 2013-12-06, 17:39 UTC
by MVV
ghisler,
Currently INI option may bring much more harm if user enable it and forget about it... Of if it will be enabled by some dumb megapack creator...
I think it is enough to describe such options in help. If user will use it w/o reading help, he will do something he doesn't know, so it is not your fault!
It is impossible to add total lamer protection into TC, any normal human must understand what he is doing if he is doing it.
At least, you may add an option like 'expert mode' and hide (or disable) such advanced options if it is not enabled.
Posted: 2013-12-06, 18:45 UTC
by Otomatic
Hi,
Why I request this option in the CopyDialog ?
For example, I use a local server Apache, PHP, MySQL, and for virtual hosts and databases , I use several junctions.
If I want to save the server only, I have to use Robocopy and the /XJ Exclude Junctions to not copy also several GB of virtual sites and databases.
But for others uses, I need to also copy files and folders pointed by the junctions. I think this case should be the default for the copy dialog. Exclude Junctions must remain an option only available in the Special Options.
Posted: 2013-12-07, 20:57 UTC
by Sob
I would think people would be used to having advanced options in advanced file manager and not messing with them blindly, especially when hidden in initially invisible advanced part of the dialog. It just screams "be careful!" :)
And I of course support the suggestion, as I also suggested it previously. Links options aren't "set it once and live with it happily ever after" kind of thing.