code: def parse_line(line: str, char_index=0) -> Tuple[ListingType, str]:
      
  
      entry_name = str.rpartition(line, ' ')[-1]
      entry_type = LISTING_FLAG_MAP.get(line[char_index], ListingType.other)
      return entry_type, entry_name
docs: Parse FTP directory listing into (type, filename).