[TC 11.03] Sync bug with % paths

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1185
Joined: 2012-03-23, 18:15 UTC
Location: UA

[TC 11.03] Sync bug with % paths

Post by *MaxX »

Pack any folder with some files and subfolders with subfiles. Any names, extensions, sizes.

Then make copies of the zip.
Zip #1: rename the packed foler path to sample.zip\Users\User\Documents\folder
Zip #2: rename the packed foler path to sample.zip\%$PERSONAL%\folder

Now open both archives in these folders on both sides of TC and open sync tool. Compare them. The second one (it has %) is not shown as empty instead of real files+folders.

AFAIK, that works with another % paths like appdata, etc. Can't remember them all now, but that is not the first time I see this.
P.S. Yes, I really use these folder names in archives for some reasons.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Sync bug with % paths

Post by *ghisler(Author) »

Unfortunately you can't have both support for environment variables and environment variables in paths, that's just impossible.

Moderator message from: ghisler(Author) » 2024-11-04, 08:56 UTC

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1185
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.03] Sync bug with % paths

Post by *MaxX »

2ghisler(Author)
Can't understand what's the problem. I don't see any bugs with archivers or some another software there.
Could you describe that in details, please?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50824
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.03] Sync bug with % paths

Post by *ghisler(Author) »

There is an error if a path contains a subdirectory named like an environment variable AND you try to use that path as a starting point in "synchronize dirs", e.g.
c:\%userprofile%
on one side will cause an error when you then click on "Compare".

There actually is a solution for the pseudo environment variables like %$PERSONAL%: Change the first character after the $ to lowercase, then TC ignores it:
sample.zip\%$pERSONAL%\folder

This doesn't work with regular environment variables like %userprofile%, though.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1185
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: [TC 11.03] Sync bug with % paths

Post by *MaxX »

Lowecase folder name %$personal% works fine.
Thanks for help.
Ukrainian Total Commander Translator. Feedback and discuss.
Post Reply