Modify

Opened 14 years ago

Closed 14 years ago

#2046 closed Bug (Fixed)

DirGetSize ( '' ) doesn't return error

Reported by: wakillon Owned by: Valik
Milestone: 3.3.7.21 Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: DirGetSize Cc:

Description (last modified by Valik)

DirGetSize Function ( with or without flag ) should returns -1 and sets @error to 1 if the path doesn't exist, but if path is it return a size and no error...

Attachments (0)

Change History (2)

comment:1 by Valik, 14 years ago

Description: modified (diff)

Several things wrong with this bug report.

  • Why did you enclose the description in code tags? There was no code posted.
  • Why are you filing bug reports against 3.3.6.1 when we are at beta 3.3.7.20? Did you read the ticket guidelines before posting?
  • The fact that it returns a value should not be surprising. I expected the size of the working directory to be returned. Instead it returns the size of the drive for working directory due to stupid code.

Since this doesn't behave in a sensible fashion I'll just make it error out on an empty path. It should probably return the size of the current working directory, though.

comment:2 by Valik, 14 years ago

Milestone: 3.3.7.21
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed by revision [6363] in version: 3.3.7.21

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


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