MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / verifyFile

Method verifyFile

plugins/Bigfile/BigfilePlugin.py:349–356  ·  view source on GitHub ↗
(self, inner_path, file, ignore_same=True)

Source from the content-addressed store, hash-verified

347 return True
348
349 def verifyFile(self, inner_path, file, ignore_same=True):
350 if "|" not in inner_path:
351 return super(ContentManagerPlugin, self).verifyFile(inner_path, file, ignore_same)
352
353 inner_path, file_range = inner_path.split("|")
354 pos_from, pos_to = map(int, file_range.split("-"))
355
356 return self.verifyPiece(inner_path, pos_from, file)
357
358 def optionalDownloaded(self, inner_path, hash_id, size=None, own=False):
359 if "|" in inner_path:

Callers

nothing calls this directly

Calls 1

verifyPieceMethod · 0.95

Tested by

no test coverage detected