MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / makeDir

Method makeDir

scripts/generator.py:931–941  ·  view source on GitHub ↗

Create a directory, if not already done. Generally called from derived generators creating hierarchies.

(self, path)

Source from the content-addressed store, hash-verified

929 return body
930
931 def makeDir(self, path):
932 """Create a directory, if not already done.
933
934 Generally called from derived generators creating hierarchies."""
935 self.logMsg('diag', 'OutputGenerator::makeDir(', path, ')')
936 if path not in self.madeDirs:
937 # This can get race conditions with multiple writers, see
938 # https://stackoverflow.com/questions/273192/
939 if not os.path.exists(path):
940 os.makedirs(path)
941 self.madeDirs[path] = None
942
943 def beginFile(self, genOpts):
944 """Start a new interface file

Callers 7

writeIncludeMethod · 0.80
writeEnumTableMethod · 0.80
writeEnumBoxMethod · 0.80
writeFlagBoxMethod · 0.80
beginFileMethod · 0.80
beginFileMethod · 0.80
writeIncludeMethod · 0.80

Calls 1

logMsgMethod · 0.95

Tested by

no test coverage detected