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

Method isFile

plugins/FilePack/FilePackPlugin.py:103–109  ·  view source on GitHub ↗
(self, inner_path)

Source from the content-addressed store, hash-verified

101@PluginManager.registerTo("SiteStorage")
102class SiteStoragePlugin(object):
103 def isFile(self, inner_path):
104 if ".zip/" in inner_path or ".tar.gz/" in inner_path:
105 match = re.match("^(.*\.(?:tar.gz|tar.bz2|zip))/(.*)", inner_path)
106 archive_inner_path, path_within = match.groups()
107 return super(SiteStoragePlugin, self).isFile(archive_inner_path)
108 else:
109 return super(SiteStoragePlugin, self).isFile(inner_path)
110
111 def openArchive(self, inner_path):
112 archive_path = self.getPath(inner_path)

Callers 12

actionPatchFileMethod · 0.45
getDbFilesMethod · 0.45
testOptionalDeleteMethod · 0.45
testOptionalRenameMethod · 0.45
actionBigfileUploadMethod · 0.45
actionFileDeleteMethod · 0.45
addTaskMethod · 0.45
testOpenBigfileMethod · 0.45
testDownloadStatsMethod · 0.45
testPrebufferMethod · 0.45
testDownloadAllPiecesMethod · 0.45
testFileSizeMethod · 0.45

Calls

no outgoing calls

Tested by 7

testOptionalDeleteMethod · 0.36
testOptionalRenameMethod · 0.36
testOpenBigfileMethod · 0.36
testDownloadStatsMethod · 0.36
testPrebufferMethod · 0.36
testDownloadAllPiecesMethod · 0.36
testFileSizeMethod · 0.36