GLXShell.libs.utils module

GLXShell.libs.utils.file_exist(path)[source]
GLXShell.libs.utils.size_of(size, suffix='B')[source]

Scale bytes to its proper format

Example:

1253656 => ‘1.20MB’ 1253656678 => ‘1.17GB’

Parameters
  • size (int) – bytes size to convert

  • suffix – what suffix is add at the end of the returned value

Type

str