MCPcopy Create free account
hub / github.com/twisted/twisted / getContent

Method getContent

src/twisted/python/filepath.py:393–401  ·  view source on GitHub ↗

Retrieve the contents of the file at this path. @return: the contents of the file @rtype: L{bytes}

(self)

Source from the content-addressed store, hash-verified

391 raise NotImplementedError()
392
393 def getContent(self) -> bytes:
394 """
395 Retrieve the contents of the file at this path.
396
397 @return: the contents of the file
398 @rtype: L{bytes}
399 """
400 with self.open() as fp:
401 return fp.read()
402
403 def parents(self) -> Iterable[AbstractFilePath[AnyStr]]:
404 """

Callers 15

isDockerMethod · 0.45
test_unzipIterChunkyMethod · 0.45
assertStructureMethod · 0.45
assertFilesEqualMethod · 0.45
cb_check_logMethod · 0.45
test_noRegenerationMethod · 0.45
test_saveKeyMethod · 0.45
test_saveKeyECDSAMethod · 0.45
test_saveKeyEd25519Method · 0.45
test_saveKeysha256Method · 0.45

Calls 2

openMethod · 0.95
readMethod · 0.45

Tested by 15

test_unzipIterChunkyMethod · 0.36
assertStructureMethod · 0.36
assertFilesEqualMethod · 0.36
cb_check_logMethod · 0.36
test_noRegenerationMethod · 0.36
test_saveKeyMethod · 0.36
test_saveKeyECDSAMethod · 0.36
test_saveKeyEd25519Method · 0.36
test_saveKeysha256Method · 0.36