Opened 12 years ago

Closed 12 years ago

#2046 closed Bug (Fixed)

DirGetSize ( '' ) doesn't return error

Reported by: wakillon Owned by: Valik
Milestone: Component: AutoIt
Version: 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 12 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 when we are at beta 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 12 years ago by Valik

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

Fixed by revision [6363] in version:

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

as closed The owner will remain Valik.

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

Note: See TracTickets for help on using tickets.