def _remove_dir(path):
 try:
  shutil.rmtree(path.path)
 except OSError as e:
  if (e.errno != errno.ENOENT):
   raise

def _remove_dir ( path ) : try : shutil . rmtree ( path . path ) except OSError as e : if ( e . errno != errno . ENOENT ) : raise
safely remove the directory path .