<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_folder(folder):
 """Read all files of `folder` and return a list of HandwrittenData objects. Parameters folder : string Path to a folder Returns ------- list : A list of all .ink files in the given folder. """

    recordings = []
    for filename in glob.glob(os.path.join(folder, '*.ink')):
        recording = parse_scg_ink_file(filename)
        recordings.append(recording)
    return recordings