pyufunc.get_dir_size#

pyufunc.get_dir_size(directory, unit='kb')#

Get the size of a directory in the specified unit.

Parameters:
  • directory (str) – The directory to get the size of.

  • unit (str, optional) – the unit for the directory (‘kb’, ‘mb’, ‘gb’, ‘tb’). Defaults to “kb”.

Returns:

the size of the directory in the specified unit.

Return type:

str