parameters: (self, f)
docstring: Checks if requested file exists on local server hosting files.
docstring_summary: Checks if requested file exists on local server hosting files.
docstring_tokens: Checks if requested file exists on local server hosting files .
function: def _CheckFileExistOnLocalServer(self, f):
      """Checks if requested file exists on local server hosting files."""
      test_url = self._GetServerURL(f, self._options.local_server_port)
      try:
        cherrypy.log('Check file exist using URL: %s' % test_url)
        return urllib2.urlopen(test_url) is not None
      except Exception:
        raise cherrypy.HTTPError(404, 'File not found on local server.')
function_tokens: def _CheckFileExistOnLocalServer ( self , f ) : test_url = self . _GetServerURL ( f , self . _options . local_server_port ) try : cherrypy . log ( 'Check file exist using URL: %s' % test_url ) return urllib2 . urlopen ( test_url ) is not None except Exception : raise cherrypy . HTTPError ( 404 , 'File not found on local server.' )