Modify

Opened 17 years ago

Closed 17 years ago

#624 closed Feature Request (Rejected)

FileCopy() - need better error return, and maybe protect existing dest file

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

Description

After a bit of research on using FileCopy(), here are two suggestions:

1) Make FileCopy() return "@error" so that elaborate means are not required to determine the success of the operation.

2) Don't delete an existing destination file before making the copy, if you can avoid it.

Thanks for a great program -

  1. Baker

Attachments (0)

Change History (3)

comment:1 by TicketCleanup, 17 years ago

Version: 3.2.12.0

Automatic ticket cleanup.

comment:2 by J-Paul Mesnage, 17 years ago

I don't understand your second point as you need to use flag=1 to overwrite an existing file.

comment:3 by Valik, 17 years ago

Resolution: Rejected
Status: newclosed

If you are not satisfied with the behavior of FileCopy(), then wrap the built-in function with your own function that has the other functionality you desire. As for your second point, JP is right. The destination must be deleted before the copy can take place and that only happens if you specify a flag.

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.