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