Single file handled as name duplicate in MRT

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

But what is running in that virtual machine? Linux? Windows? Which version?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

It's the system I indicated in the first post. Win7, x64.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, seems like you misunderstood me. I didn't ask about the system you are running on, but the target. You wrote: "try network folder"
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I try to give a complete picture. The host is OX 10.11.6 (OS X Journaled, not case-sensitive) running Parallels. Parallels has a virtual machine running Win 7, x64, NTFS. Paralles offers a virtual network accessible as \\psf.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe it's because OS/X is Unix-based, so case-sensitive?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

As I wrote I'm not using a case-sensitive file system as host.

For me the question is why TC detects a conflict when there is definitely only one file in a folder.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It means that the MoveFile call apparently fails - TC only offers this option if
- the MoveFile call fails
and
- the target name exists

TC doesn't even check whether the target and source name are the same because MoveFile should never fail in this case. Maybe you can see in process monitor with which error it fails?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

It means that the MoveFile call apparently fails - TC only offers this option if
Just to make sure we are talking about the same thing. I'm _not_ talking about this dialog. The wrong renaming is done fully automatically.
[img]http://fs5.directupload.net/images/160802/38fghnhc.png[/img]
TC doesn't even check whether the target and source name are the same because MoveFile should never fail in this case. Maybe you can see in process monitor with which error it fails?
Will try that!
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Here is the log:
http://lefteous.totalcmd.net/tc/bugs/thread_45030_log1.pml

After some research it seems that this is a known problem - whatever causes it.

I also tested it in SpeedCommander where the author works on a Mac with Parallels and it has the same problem when manually renaming.

The question is now what to do. I think it's about how it's handled. While before it silently failed which is at least better than the auto-renaming in this environment.

For me a workaround would be the best solution for the case where ONLY the case is changed. Something like this:

1. User wants to rename Hallo.txt - HALLO.txt
2. TC checks if special INI setting is active and path is not local
3. If this is the case rename Hallo.txt to #______123_temp.txt
4. Rename #______123_temp.txt to HALLO.txt
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have now added some extra code to not append number when renaming files and source+target name are identical, or differ only in case. I have considered to rename via an intermediate name, but this is risky (may overwrite currently hidden files), so maybe later.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I can confirm that in beta 8 the file to rename is displayed bold in the described scenario.

It would be great if a workaround could be implemented as described. I will also contact Parallels and ask them them if they can do something about it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, moving to fixed for now. If Parallels cannot fix it, I will consider to add the workaround.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I contacted the Parallels support. They are currently investigating the issue. They have a very let's say proactive support (actually calling me if they need more information!) so there is some hope they will do something about it.
Post Reply