sarkas.utilities.io.convert_bytes#

sarkas.utilities.io.convert_bytes(tot_bytes)[source]#

Convert bytes to human-readable GB, MB, KB.

Parameters

tot_bytes (int) – Total number of bytes.

Returns

[GB, MB, KB, rem] (list) – Bytes divided into Giga, Mega, Kilo bytes.