Modify

#3227 assigned Feature Request

DirRemove - If directory does not exist: Return value 1 instead of 0

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

Description

Because the function DirRemove reached the target (even if the directory does not exist) there is more sense to return 1 instead of 0. The function does not fail, it is not needed.
Maybe Information in form of @extended has more sense in this case.

Attachments (0)

Change History (5)

comment:1 by Melba23, on May 1, 2016 at 4:19:12 PM

"Maybe Information in form of @extended has more sense in this case"

Certainly better than altering the normal return.

M23

in reply to:  1 comment:2 by Micha, on May 4, 2016 at 12:45:56 PM

Replying to Melba23:

"Maybe Information in form of @extended has more sense in this case"

Certainly better than altering the normal return.

M23

Ok yes, your right. The function is not not needed, but not successful in that way, too.
The best is to set @extended if the directory does not exists and keep the current return values.

comment:3 by Jpm, on Oct 12, 2020 at 2:23:37 PM

Fix sent to Jon
return stay to 0 but @error is set

comment:4 by Jpm, on Oct 12, 2020 at 2:24:09 PM

Owner: set to Jpm
Status: newassigned

comment:5 by Jpm, on Mar 16, 2024 at 9:51:57 AM

Owner: changed from Jpm to Jon

Modify Ticket

Action
as assigned The owner will remain Jon.

Add Comment


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