Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: copy_apprtc.py

Issue 1566963004: Use cleanup with retry on Windows for all scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/webrtc/webrtc.DEPS@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build_apprtc_collider.py ('k') | utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: copy_apprtc.py
diff --git a/copy_apprtc.py b/copy_apprtc.py
index 8cc40b15260719d6b7ecc92f57c4211dff270a7a..ca4750ed4a6ca11c88e696087584ec23c45c28ee 100755
--- a/copy_apprtc.py
+++ b/copy_apprtc.py
@@ -27,12 +27,7 @@ def _ConfigureApprtcServerToDeveloperMode(app_yaml_path):
def main():
target_dir = os.path.join('src', 'out', 'apprtc')
- if utils.GetPlatform() is 'win':
- # Windows shutil can't handle the long node.js paths when deleting;
- # work around the problem.
- os.system('rmdir /s /q %s' % target_dir)
- else:
- shutil.rmtree(target_dir, ignore_errors=True)
+ utils.RemoveDirectory(target_dir)
shutil.copytree('apprtc',
target_dir, ignore=shutil.ignore_patterns('.svn', '.git'))
« no previous file with comments | « build_apprtc_collider.py ('k') | utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698