code: def parse_msdos(self, lines):
          '''Parse lines from a MS-DOS format.'''
          for line in lines:
              fields = line.split(None, 4)
  
              date_str = fields[0]
              time_str = fields[1]
  
              datetime_str = '{} {}'.format(date_str, time_str)
  
              file_datetime = self.parse_datetime(datetime_str)[0]
  
              if fields[2] == '<DIR>':
                  file_size = None
                  file_type = 'dir'
              else:
                  file_size = parse_int(fields[2])
                  file_type = 'file'
  
              filename = fields[3]
  
              yield FileEntry(filename, file_type, file_size, file_datetimef parse_msdos(self, lines):
          '''Parse lines from a MS-DOS format.'''
          for line in lines:
              fields = line.split(None, 4)
  
              date_str = fields[0]
              time_str = fields[1]
  
              datetime_str = '{} {}'.format(date_str, time_str)
  
              file_datetime = self.parse_datetime(datetime_str)[0]
  
              if fields[2] == '<DIR>':
                  file_size = None
                  file_type = 'dir'
              else:
                  file_size = parse_int(fields[2])
                  file_type = 'file'
  
              filename = fields[3]
  
              yield FileEntry(filename, file_type, file_size, file_datetime)
docs: Parse lines from a MS-DOS format.