MCPcopy Create free account
hub / github.com/Autodesk/Aurora / CopyDirectory

Function CopyDirectory

Scripts/installExternalsFunctions.py:319–329  ·  view source on GitHub ↗

Copy directory like shutil.copytree.

(context, srcDir, destDir, destPrefix = '')

Source from the content-addressed store, hash-verified

317 shutil.copy(f, instDestDir)
318
319def CopyDirectory(context, srcDir, destDir, destPrefix = ''):
320 """
321 Copy directory like shutil.copytree.
322 """
323 instDestDir = os.path.join(context.externalsInstDir, destPrefix, destDir)
324 if os.path.isdir(instDestDir):
325 shutil.rmtree(instDestDir)
326
327 PrintCommandOutput("Copying {srcDir} to {destDir}\n"
328 .format(srcDir=srcDir, destDir=instDestDir))
329 shutil.copytree(srcDir, instDestDir)
330
331def FormatMultiProcs(numJobs, generator):
332 tag = "-j"

Callers 7

InstallTBB_WindowsFunction · 0.85
InstallTBB_LinuxFunction · 0.85
InstallGLMFunction · 0.85
InstallSlangFunction · 0.85
InstallNRDFunction · 0.85
InstallNRIFunction · 0.85
InstallGLEWFunction · 0.85

Calls 2

PrintCommandOutputFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected