示例#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)