media/tools/constrained_network_server/cns.py
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.')
Checks if requested file exists on local server hosting files.
Checks if requested file exists on local server hosting files.
Checks if requested file exists on local server hosting files .
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.')
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.' )
Checks if requested file exists on local server hosting files.
Checks if requested file exists on local server hosting files .
"""Checks if requested file exists on local server hosting files."""
self
f