Opened 6 years ago
Closed 6 years ago
#46987 closed defect (bug) (fixed)
Return value of the get_dirsize function is the number of bytes
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.2 | Priority: | normal |
Severity: | normal | Version: | 5.2 |
Component: | Filesystem API | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
In this doc of the get_dirsize function, the return value is MB
.
* @return int|false|null Size in MB if a valid directory. False if not. Null if timeout.
I tried on some directories, but the actual value returned was the number of bytes.
Is this doc correct?
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Yes @tmatsuur you are right. I have checked it and it always returns bytes. I have corrected that in function's documentation. Please let me know any more changes are required.