347 @return flag indicating an execution without errors (boolean) |
347 @return flag indicating an execution without errors (boolean) |
348 """ |
348 """ |
349 status = self.vcsCheckout(vcsDataDict, projectDir) |
349 status = self.vcsCheckout(vcsDataDict, projectDir) |
350 adminPath = os.path.join(projectDir, self.adminDirOrFile) |
350 adminPath = os.path.join(projectDir, self.adminDirOrFile) |
351 if os.path.isdir(adminPath): |
351 if os.path.isdir(adminPath): |
352 shutil.rmtree(adminPath, True) |
352 shutil.rmtree(adminPath, ignore_errors=True) |
353 else: |
353 else: |
354 os.remove(adminPath) |
354 os.remove(adminPath) |
355 if os.path.exists(os.path.join(projectDir, Git.IgnoreFileName)): |
355 if os.path.exists(os.path.join(projectDir, Git.IgnoreFileName)): |
356 os.remove(os.path.join(projectDir, Git.IgnoreFileName)) |
356 os.remove(os.path.join(projectDir, Git.IgnoreFileName)) |
357 return status |
357 return status |