#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)
follow-up: 2 comment:1 by , on Apr 29, 2010 at 6:03:36 AM
follow-up: 3 comment:2 by , on Apr 29, 2010 at 12:25:37 PM
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).
comment:3 by , on May 5, 2010 at 10:58:56 AM
| Resolution: | → Works For Me |
|---|---|
| Status: | new → closed |
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.

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