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

Method getSize

src/Site/SiteStorage.py:335–340  ·  view source on GitHub ↗
(self, inner_path)

Source from the content-addressed store, hash-verified

333
334 # Get file size
335 def getSize(self, inner_path):
336 path = self.getPath(inner_path)
337 try:
338 return os.path.getsize(path)
339 except:
340 return 0
341
342 # File exist
343 def isFile(self, inner_path):

Callers 11

publisherMethod · 0.80
getItemSizeMethod · 0.80
optionalDownloadedMethod · 0.80
optionalRemovedMethod · 0.80
testGetFileMethod · 0.80
testBigUpdateMethod · 0.80
hashFileMethod · 0.80
testFileSizeMethod · 0.80
testNullFileReadMethod · 0.80

Calls 1

getPathMethod · 0.95

Tested by

no test coverage detected