copy symlinks as symlinks

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
rjak
Junior Member
Junior Member
Posts: 6
Joined: 2014-07-21, 20:03 UTC

copy symlinks as symlinks

Post by *rjak » 2014-07-21, 22:07 UTC

options available?

like:
xcopy /B or
rsync -l, --links

User avatar
HolgerK
Power Member
Power Member
Posts: 5073
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: copy symlinks as symlinks

Post by *HolgerK » 2014-07-21, 22:29 UTC

options available?
F1, 4b wincmd.ini, CopyLinks

HTH
Holger

rjak
Junior Member
Junior Member
Posts: 6
Joined: 2014-07-21, 20:03 UTC

Post by *rjak » 2014-07-21, 22:50 UTC

thanks for your fast supply!
dont know what F1,4b means. a reference to help?

I set:
[Configuration]
CopyLinks=1 (copy symlinks as symlinks, keep drive letter)

but it effectively uses mode 0 (even as admin)

Details:
Windows 7 64bit
copying SYMLINKD (directory symlinks)

User avatar
karlchen
Power Member
Power Member
Posts: 4554
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen » 2014-07-22, 08:13 UTC

rjak wrote:dont know what F1,4b means. a reference to help?
Exactly. Press F1 to launch the T.C. help. Go to section 4.b which is about parameters in wincmd.ini. Look for the parameter CopyLinks.
T.C. help on copyLinks 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.
T.C. help on IgnoreLinks wrote: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, re-scan tree
16: ignore links even when they are selected in the current directory. Otherwise only links in selected subdirectories are ignored.
rjak wrote:[Configuration]
CopyLinks=1 (copy symlinks as symlinks, keep drive letter)
After setting parameters in wincmd.ini manually you may have to restart T.C.

Yet, you should also check for the current value of the parameter IgnoreLinks. In case links are ignored I imagine CopyLinks may not have any real effect.
Linux Mint 18.1 64-bit Cinnamon Desktop, Total Commander 9.22a 64-bit
Ubuntu 18.04.2 32-bit Mate Desktop, Total Commander 9.22a 32-bit
Windows? - 1 window in every room

rjak
Junior Member
Junior Member
Posts: 6
Joined: 2014-07-21, 20:03 UTC

Post by *rjak » 2014-07-22, 09:33 UTC

Thanks. But no, it does not work.

What I tried (in combinations):
IgnoreLinks=0
IgnoreLinks=1
IgnoreLinks=19
restarted tc
verified editing wincmd.ini effects by another value
tried TC7.04a, 7.51a (32bit,64bit)

symlinks, symlinksd are ALWAYS copied as dirs and files.

EVEN IgnoreLinks=1 does not work. so by now I have to use xcopy, rsync for every copy that may contain symlinks

please check this on your own so I might open a bug report

User avatar
HolgerK
Power Member
Power Member
Posts: 5073
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK » 2014-07-22, 09:52 UTC

rjak wrote:tried TC7.04a, 7.51a (32bit,64bit)
CopyLinks is a feature introduced with TC 8.50.
Another reason may be that you are using "Explorer Copy method" or CTRL+C/Ctrl+V to copy files.

Regards
Holger

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

Post by *Balderstrom » 2014-07-25, 21:43 UTC

Another reason might be that you tried to use it on the 4th Sunday in an odd month, without the other option DONT-IGNORELINKS-OR-CHANGE-THEM-JUST-COPY-IT-AS-IS-IT-SHOULDN'T-F'N-MATTER-ABOUT-HALF-A-DOZEN-OTHER-SETTINGS=42.

User avatar
HolgerK
Power Member
Power Member
Posts: 5073
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK » 2014-07-26, 19:44 UTC

Balderstrom wrote:=42.
42 is not the answer (at least in decimal number system).
According to Douglas Adams famous work the question was:
"What do you get if you multiply six by nine?"
So I suggest to try option 54 to get the ultimate solution for this problem.

Regards
Holger

VSB
Member
Member
Posts: 135
Joined: 2006-12-12, 12:02 UTC
Location: Russia

Post by *VSB » 2014-07-28, 07:13 UTC

But in 13-based..

User avatar
HolgerK
Power Member
Power Member
Posts: 5073
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK » 2014-07-28, 19:49 UTC

2VSB

TC supports hexadecimal numbers inside ini files like:

Code: Select all

=$36
but no tridecimal numbers.

;-)
Holger

LeeBinder
Junior Member
Junior Member
Posts: 14
Joined: 2009-07-18, 23:09 UTC

Re: copy symlinks as symlinks

Post by *LeeBinder » 2019-08-07, 09:56 UTC

me too!!! PLEASE add the available options..
  • into Settings/ Copy options
  • into the copy dialog options
THANK YOU CHRISTIAN!

Post Reply