code: def _compute_filename(self, request: BaseRequest):
          '''Get the appropriate filename from the request.'''
          path = self._path_namer.get_filename(request.url_info)
  
          if os.path.isdir(path):
              path += '.f'
          else:
              dir_name, name = os.path.split(path)
              path = os.path.join(anti_clobber_dir_path(dir_name), name)
  
          return patf _compute_filename(self, request: BaseRequest):
          '''Get the appropriate filename from the request.'''
          path = self._path_namer.get_filename(request.url_info)
  
          if os.path.isdir(path):
              path += '.f'
          else:
              dir_name, name = os.path.split(path)
              path = os.path.join(anti_clobber_dir_path(dir_name), name)
  
          return path
docs: Get the appropriate filename from the request.