Copy file bug

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
zeruyo
Junior Member
Junior Member
Posts: 22
Joined: 2003-03-10, 15:56 UTC

Copy file bug

Post by *zeruyo »

Scenario:
- file in source folder named 'a'
- destination folder containing a child folder name 'a'
- folder 'a' containing file named 'a'

if i try to copy file in destination folder it try to copy in child folder named 'a' asking for overwrite.
This happens even if file and child folder has extension (a.txt)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Confirmed.

Copy should be denied due to existing folder "a".
Works correct if you try to create a file "a" at destination folder...

[Edit]In latter case it displays the correct error message.[/Edit]
Last edited by sqa_wizard on 2007-06-19, 14:00 UTC, edited 1 time in total.
#5767 Personal license
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

No, it tries to 'overwrite' the subdirectory 'a' in the destination panel. This isn't possible as you will end up with 2 objects called 'a': the already existing directory 'a' and the to be copied file 'a'.

As always in TC better error messages wouldn't hurt.
TC for Linux please!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

roentgen wrote:No, it tries to 'overwrite' the subdirectory 'a' in the destination panel.
Not really:
  • when left path is d:\TEMP\ and
    right path is d:\TEMP\2
    with existing <DIR> d:\TEMP\2\a\
    and the user wants to copy/move the file "a" from left to right with F5/F6 (which should fail because of the duplicte name),
TC doesn't even try this: the file gets copied/moved to subdir "a" on the right side:
TC tries to create/overwrite the file d:\TEMP\2\a\a instead of d:\TEMP\2\a.
sqa_wizard wrote:Copy should be denied due to existing folder "a".
I think this a problem in design, because TC automatically adds the file name in the F5/F6 dialog box: when copying d:\TEMP\a the suggested target name is d:\TEMP\2\a.
If you wanted to copy a file into the subdir "a" in the target (target file name d:\TEMP\2\a\a), the syntax for target name would be the same (target d:\TEMP\2\a\ or just d:\TEMP\2\a).
roentgen wrote:As always in TC better error messages wouldn't hurt.
Hm, here there's no error message at all (only the overwrite dialog) - or did I miss something?
The only way to avoid this behaviour is probably an additional "Are you shure?" of TC everytime you copy/move a file into a dir with the same name. Not very useful in everyday use, IMO.
Any better ideas?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
Post Reply