[wp-trac] [WordPress Trac] #46987: Return value of the get_dirsize function is the number of bytes

WordPress Trac noreply at wordpress.org
Fri Apr 19 03:21:28 UTC 2019


#46987: Return value of the get_dirsize function is the number of bytes
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46987>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list