In order not to invent bicycle I wonder if there is any library that is able to parse various representations of size string (MB,KB,TB,MiB,KiB,etc..) into numeric byte based value.
ActiveState Receipes has an example here , though this is just a snippet, and not a library as such.
The reason it isn't a library is due to the triviality of the task which user1227804 mentions in their comment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With