Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 0079051d64d7a229d8a105a41ea01b41353c9ef7..ee12cd436a2dbc90f903c66dac37f933ba99e294 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -1086,6 +1086,9 @@ class AndroidCommands(object): |
self._pushed_files.append(device_path) |
self._potential_push_size += size |
+ if os.path.isdir(host_path): |
+ self.RunShellCommand('mkdir -p "%s"' % device_path) |
+ |
changed_files = self.GetFilesChanged(host_path, device_path) |
logging.info('Found %d files that need to be pushed to %s', |
len(changed_files), device_path) |