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)
follow-up: 2 comment:1 by , 16 years ago
follow-up: 3 comment:2 by , 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).
comment:3 by , 16 years ago
| 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