Opened 13 years ago

Last modified 13 years ago

#2046 closed Bug

DirGetSize ( '' ) doesn't return error — at Version 1

Reported by: wakillon Owned by:
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...

Change History (1)

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.

Note: See TracTickets for help on using tickets.