Example #1
0
 def _hashTestFile(self, url):
     localFilePath = FileJobStore._extractPathFromUrl(
         urlparse.urlparse(url))
     with open(localFilePath, 'r') as f:
         return hashlib.md5(f.read()).hexdigest()
Example #2
0
 def _hashUrl(url):
     localFilePath = FileJobStore._extractPathFromUrl(urlparse.urlparse(url))
     with open(localFilePath, 'r') as f:
         return hashlib.md5(f.read()).hexdigest()
Example #3
0
 def _cleanUpExternalStore(url):
     localFilePath = FileJobStore._extractPathFromUrl(urlparse.urlparse(url))
     os.remove(localFilePath)
Example #4
0
 def _cleanUpExternalStore(url):
     localFilePath = FileJobStore._extractPathFromUrl(
         urlparse.urlparse(url))
     os.remove(localFilePath)