pyufunc.size_of_dir#

pyufunc.size_of_dir(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