Opened 15 years ago
Closed 14 years ago
#1999 closed Bug (No Bug)
DirCopy and DirMove have some bugs
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | Cc: |
Description
DirCopy - When I copy a dir to another place like this:
DirCopy("vir_sig", "%HOMEDRIVE%\", 1)
Instead of copy the vir_sig folder it copy the contents of the vir_sig folder to %HOMEDRIVE%\
But using DirCopy("vir_sig", "%HOMEDRIVE%\vir_sig", 1) works
DirMove - When I move a folder using the overwrite option to another folder that has a folder with the same name and, instead of overwriting, it moves the folder inside the destination folder, ex:
DirMove("%HOMEDRIVE%\vir_sig", $forticlient_path & "FortiClient", 1)
will make the folder ...FortiClient\vir_sig\vir_sig where the last vir_sig is the moved folder.
To solve this I had to delete the already existing folder:
DirRemove($forticlient_path & "FortiClient\vir_sig", 1)
DirMove("%HOMEDRIVE%\vir_sig", $forticlient_path & "FortiClient", 1)

So you reported a bug about documented behavior. Good job!