code: def find_macthing_files(match):
      
      last_slash = match.rfind('/')
      if last_slash == -1:
          dirname = '.'
          match_prefix = match
          result_prefix = ''
      else:
          dirname = match[0:last_slash]
          match_prefix = match[last_slash + 1:]
          result_prefix = dirname + '/'
      return [result_prefix + filename for filename in os.listdir(dirname) if filename.startswith(match_prefix)]
docs: Finds all of the files which match (used for completion).