Closed zauni closed 11 years ago
It would be nice to have an option to specify that one wants to see the size just in bytes. On Windows it's not common to see filesizes in bits.
For example, I have a file which is 265318 bytes and it translates to 2.02Mb, which is correct, but I would like to have it translated to 259.10KB.
Would it be possible to have this option? :)
Hi,
I've added a new optional parameter to disable bit sizes. The second parameter is required to utilize the new functionality:
filesize(265318, 2, false) // 259.10KB
Thank you very much!
It would be nice to have an option to specify that one wants to see the size just in bytes. On Windows it's not common to see filesizes in bits.
For example, I have a file which is 265318 bytes and it translates to 2.02Mb, which is correct, but I would like to have it translated to 259.10KB.
Would it be possible to have this option? :)