Modify

Opened 16 years ago

Closed 16 years ago

#1578 closed Bug (Works For Me)

DirCopy doesn't work unless you specify option 1 - Overwrite

Reported by: Wooltown Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description

Running on Windows XP SP3, English version

I have a couple of files in "C:\Backup\Files" and want to copy them into the existing directory "C:\temp" with option "0 - do not overwrite existing files", it doesn't work if the directory exists, but if the directory doesn't exist it works fine.

Is this by design or a bug ?

$err = DirCopy("C:\Backup\Files" , "C:\temp",0)
msgbox(0,"er",$err)

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, 16 years ago

can you be more explicit does output dir already have those input dir files?
if yes that not a bug

in reply to:  1 ; comment:2 by MrCreatoR <mscreator@…>, 16 years ago

Replying to Jpm:

can you be more explicit does output dir already have those input dir files?
if yes that not a bug

I have checked that issue, and indeed there is a bug - the destination folder exists but it's empty, files are not copied from source dir (with flag = 0).

in reply to:  2 comment:3 by J-Paul Mesnage, 16 years ago

Resolution: Works For Me
Status: newclosed

Replying to MrCreatoR <mscreator@…>:

Replying to Jpm:

can you be more explicit does output dir already have those input dir files?
if yes that not a bug

I have checked that issue, and indeed there is a bug - the destination folder exists but it's empty, files are not copied from source dir (with flag = 0).

I understand your point but overiding is needed to reuse the target stuff.
So any problem in creation lead to an error not just the files copy.
Perhaps doc must be more precise.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.