[TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *white »

  • Enable dark mode if not yet enabled. (this is only to show a certain dialog is always in normal mode)
  • Create folder c:\test\test
  • Go to c:\
  • In the other panel go to some folder and create the file "test" with any content.
  • Copy the newly created file to c:\ in the background (press F5, F2)
  • An error msg appears saying a dir with the name "c:\test" already exists. Click on the Yes button to copy to this dir.
  • The same error msg appears which is always in normal mode (non dark).
The second error msg is wrong because it is not and dark mode and because it says "c:\test" already exists while it should say that "c:\test\test" already exists (or simply try to copy as with copying in forground).
User avatar
vianova
Member
Member
Posts: 103
Joined: 2011-12-06, 18:35 UTC
Location: Hamburg

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *vianova »

Not confirmed,
I got no error message
#425 Personal licence me and TBO are the same user
16 GB Win 10 Pro 21H2 64 Bit with TC 10.51 (32/64 Bit)
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *white »

2vianova
Can you try with clean ini?
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *petermad »

2vianova
You have to NOT have CopyToDirWarn=0 in wincmd.ini.

Otherwise I can confirm the bug as it is reported
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *ghisler(Author) »

I cannot reproduce that. The result is the same in 32-bit and 64-bit. I tried with a fresh INI file.

The second error message shows:
Access denied on file
c:\test\test
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *white »

ghisler(Author) wrote: 2022-07-17, 13:57 UTC I cannot reproduce that. The result is the same in 32-bit and 64-bit. I tried with a fresh INI file.
Weird, I tried it with 32-bit and 64-bit too and petermad confirmed it too. Are you sure you did a background copy to c:\ ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *ghisler(Author) »

Are you sure you did a background copy to c:\ ?
Ah, that's what I missed! I read it about 10 times and couldn't figure out what I was doing differently.

It's due to this error and bugfix:
https://www.ghisler.ch/board/viewtopic.php?p=412865

I was trying to handle the error checks before adding the items to the background copy thread, because the dark message box was hanging there. But somehow the check was done again in the background thread too. That's why you get a non-dark message box, because the dark one would hang.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *petermad »

history.txt wrote:18.07.22 Fixed: When trying to copy a file with F5-F2 and a folder with the same name already existed, the user was asked twice whether he wanted to copy the file to that folder instead (32/64)
Confirmed fixed in TC 10.51rc1 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.50] Copy in background: error msg when target name exist as folder and as file or folder within that folder

Post by *white »

petermad wrote: 2022-08-10, 18:54 UTC Confirmed fixed in TC 10.51rc1 :-)
Confirmed.

Moderator message from: white » 2022-08-10, 23:30 UTC

Moved to Fixed bugs.
Post Reply