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

Method openBigfile

plugins/Bigfile/BigfilePlugin.py:477–481  ·  view source on GitHub ↗
(self, inner_path, prebuffer=0)

Source from the content-addressed store, hash-verified

475 return True
476
477 def openBigfile(self, inner_path, prebuffer=0):
478 if not self.checkBigfile(inner_path):
479 return False
480 self.site.needFile(inner_path, blocking=False) # Download piecemap
481 return BigFile(self.site, inner_path, prebuffer=prebuffer)
482
483
484class BigFile(object):

Callers 8

actionSiteMediaMethod · 0.80
openArchiveMethod · 0.80
actionFileMethod · 0.80
testOpenBigfileMethod · 0.80
testFileGetMethod · 0.80
testDownloadStatsMethod · 0.80
testPrebufferMethod · 0.80
testFileRenameMethod · 0.80

Calls 3

checkBigfileMethod · 0.95
BigFileClass · 0.85
needFileMethod · 0.45

Tested by 5

testOpenBigfileMethod · 0.64
testFileGetMethod · 0.64
testDownloadStatsMethod · 0.64
testPrebufferMethod · 0.64
testFileRenameMethod · 0.64