Modify

Opened 3 years ago

Last modified 3 years ago

#3227 new Feature Request

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

Reported by: Micha Owned by:
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 (2)

comment:1 follow-up: Changed 3 years ago by Melba23

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

Certainly better than altering the normal return.

M23

comment:2 in reply to: ↑ 1 Changed 3 years ago by Micha

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.