Opened 7 years ago
Closed 7 years ago
#46987 closed defect (bug) (fixed)
Return value of the get_dirsize function is the number of bytes
| Reported by: | tmatsuur | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.2 |
| Component: | Filesystem API | Version: | 5.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.