def split_file_info(fileinfo):
current_year = datetime.datetime.now().strftime('<STR_LIT>')<EOL>files = []<EOL>for line in fileinfo:<EOL><INDENT>parts = re.split(<EOL>r'<STR_LIT>' +                  <EOL>r'<STR_LIT>' +               <EOL>r'<STR_LIT>' +                       <EOL>r'<STR_LIT>' +            <EOL>r'<STR_LIT>' +            <EOL>r'<STR_LIT>' +                       <EOL>r'<STR_LIT>' +           <EOL>r'<STR_LIT>' +     <EOL>r'<STR_LIT>',                           <EOL>line<EOL>)<EOL>date = parts[<NUM_LIT:7>]<EOL>time = parts[<NUM_LIT:8>] if '<STR_LIT::>' in parts[<NUM_LIT:8>] else '<STR_LIT>'<EOL>year = parts[<NUM_LIT:8>] if '<STR_LIT::>' not in parts[<NUM_LIT:8>] else current_year<EOL>dt_obj = parser.parse("<STR_LIT>" % (date, year, time))<EOL>files.append({<EOL>'<STR_LIT>': parts[<NUM_LIT:1>],<EOL>'<STR_LIT>': parts[<NUM_LIT:2>],<EOL>'<STR_LIT>': parts[<NUM_LIT:3>],<EOL>'<STR_LIT>': parts[<NUM_LIT:4>],<EOL>'<STR_LIT>': parts[<NUM_LIT:5>],<EOL>'<STR_LIT:size>': int(parts[<NUM_LIT:6>]),<EOL>'<STR_LIT:date>': date,<EOL>'<STR_LIT:time>': time,<EOL>'<STR_LIT>': year,<EOL>'<STR_LIT:name>': parts[<NUM_LIT:9>],<EOL>'<STR_LIT>': dt_obj<EOL>})<EOL><DEDENT>return files<EOL>
Parse sane directory output usually ls -l
        Adapted from https://gist.github.com/tobiasoberrauch/2942716