jade.utils.utils.get_directory_size_bytes

jade.utils.utils.get_directory_size_bytes(directory, recursive=True)[source]

Return the total space consumed by all files in directory.

Parameters:
  • directory (str)

  • recursive (bool)

Returns:

size in bytes

Return type:

int