| Index: build/android/pylib/android_commands.py
|
| diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
|
| index 3e4daea3123646cb09653042132820b1be5219bb..e7a27f91228a2711679e0986d26466119a2272da 100644
|
| --- a/build/android/pylib/android_commands.py
|
| +++ b/build/android/pylib/android_commands.py
|
| @@ -984,7 +984,7 @@ class AndroidCommands(object):
|
| return pids
|
|
|
| def FileExistsOnDevice(self, file_name):
|
| - """Checks whether the given (regular) file exists on the device.
|
| + """Checks whether the given file exists on the device.
|
|
|
| Args:
|
| file_name: Full path of file to check.
|
| @@ -994,7 +994,7 @@ class AndroidCommands(object):
|
| """
|
| assert '"' not in file_name, 'file_name cannot contain double quotes'
|
| status = self._adb.SendShellCommand(
|
| - '\'test -f "%s"; echo $?\'' % (file_name))
|
| + '\'test -e "%s"; echo $?\'' % (file_name))
|
| if 'test: not found' not in status:
|
| return int(status) == 0
|
|
|
|
|