MCPcopy Create free account
hub / github.com/Syncplay/syncplay / getBuildDirContents

Method getBuildDirContents

buildPy2exe.py:568–578  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

566 raise RuntimeError("NSIS compilation return code: %d" % retcode)
567
568 def getBuildDirContents(self, path):
569 fileList = {}
570 totalSize = 0
571 for root, _, files in os.walk(path):
572 totalSize += sum(os.path.getsize(os.path.join(root, file_)) for file_ in files)
573 for file_ in files:
574 new_root = root.replace(OUT_DIR, "").strip("\\")
575 if new_root not in fileList:
576 fileList[new_root] = []
577 fileList[new_root].append(file_)
578 return fileList, totalSize
579
580 def prepareInstallListTemplate(self, fileList):
581 create = []

Callers 1

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected