Folder.get_file_sizes

Return a dictionary with the name of all files text inside the folder algongside their size i.e their number of characters. [source]
Returns:
file_sizes : dict
  The name name of all files text inside the folder algongside their size i.e their number of characters.
See also:
folder.get_file_names
 Return a list with the name of all text files inside the folder.

folder.get_file_lengths
 Return a dicionary with the name of all files text inside the folder algongside their length i.e their number of rows.

Example:

# Imports
>>> from zgli.folder import Folder

# Initialize class
>>> data_path = 'D:/folder'
>>> folder = Folder(data_path)
>>> file_sizes = folder.get_file_sizes()
>>> file_sizes
{'files': ['blueWhale.txt',
    'cat.txt',
    'chimpanzee.txt',
    'finWhale.txt',
    'graySeal.txt',
    'harborSeal.txt',
    'horse.txt',
    'human.txt',
    'mouse.txt',
    'rat.txt'],
    'size': [16440,
    17040,
    16620,
    16440,
    16800,
    16860,
    16680,
    16620,
    16320,
    16320]}