Modify

Opened 13 years ago

Closed 13 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 Changed 13 years ago by Valik

  • 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 Changed 13 years ago by Valik

  • Milestone set to 3.3.7.21
  • Owner set to Valik
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [6363] in version: 3.3.7.21

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 closed The owner will remain Valik.
Author


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

 
Note: See TracTickets for help on using tickets.