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. [source]
Returns:
file_lengths : dict
  The name of all files text inside the folder algongside their length i.e their number of rows.
See also:
folder.get_file_names
 Return a list with the name of all text files inside the folder.

folder.get_file_sizes
 Return the names of all the files inside the folder.

Example:

# Imports
>>> from zgli.folder import Folder

# Initialize class
>>> data_path = 'D:/folder'
>>> folder = Folder(data_path)
>>> file_lenghts = folder.get_file_lenghts()
>>> file_lenghts
{'files': ['blueWhale.txt',
'cat.txt',
'chimpanzee.txt',
'finWhale.txt',
'graySeal.txt',
'harborSeal.txt',
'horse.txt',
'human.txt',
'mouse.txt',
'rat.txt'],
'lenght': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}