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