MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / getFile

Method getFile

Algorithmia/datafile.py:207–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

205
206 # Get file from the data api
207 def getFile(self):
208 exists, error = self.existsWithError()
209 if not exists:
210 raise DataApiError('unable to get file {} - {}'.format(self.path, error))
211 return open(self.path)
212
213 def getName(self):
214 _, name = getParentAndBase(self.path)

Callers

nothing calls this directly

Calls 2

existsWithErrorMethod · 0.95
DataApiErrorClass · 0.90

Tested by

no test coverage detected