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')) |