Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 7972909ae31cac704e80f057c54893be857e84b1..65aab3c3333d6d3e43d1e793f5d15c9dec0f708e 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -1074,7 +1074,7 @@ class AndroidCommands(object): |
""" |
host_dir = os.path.dirname(host_file) |
if not os.path.exists(host_dir): |
- os.mkdir(host_dir) |
+ os.makedirs(host_dir) |
device_file = '%s/screenshot.png' % self.GetExternalStorage() |
self.RunShellCommand('/system/bin/screencap -p %s' % device_file) |
assert self._adb.Pull(device_file, host_file) |