parameters: (self, source, dest)
docstring: Emulation of rm -rf out && cp -af in out.
docstring_summary: Emulation of rm -rf out && cp -af in out.
docstring_tokens: Emulation of rm - rf out && cp - af in out .
function: def ExecRecursiveMirror(self, source, dest):
      """Emulation of rm -rf out && cp -af in out."""
      if os.path.exists(dest):
        if os.path.isdir(dest):
          shutil.rmtree(dest)
        else:
          os.unlink(dest)
      if os.path.isdir(source):
        shutil.copytree(source, dest)
      else:
        shutil.copy2(source, dest)
function_tokens: def ExecRecursiveMirror ( self , source , dest ) : if os . path . exists ( dest ) : if os . path . isdir ( dest ) : shutil . rmtree ( dest ) else : os . unlink ( dest ) if os . path . isdir ( source ) : shutil . copytree ( source , dest ) else : shutil . copy2 ( source , dest )