1
0
mirror of https://github.com/google/adb-sync.git synced 2026-01-03 01:48:02 +00:00

adb-sync: Fix listdir() with Android N.

This commit is contained in:
Rudolf Polzer
2016-08-25 09:26:45 -04:00
parent 7fc48ad1e1
commit f345a79f93

View File

@@ -216,7 +216,7 @@ class AdbFileSystem(object):
def listdir(self, path): # os's name, so pylint: disable=g-bad-name
"""List the contents of a directory."""
with self.Stdout(self.adb + [b'shell', _sprintf(b'ls -a %s',
with self.Stdout(self.adb + [b'shell', _sprintf(b'ls -a1 %s',
self.QuoteArgument(path))]) as stdout:
for line in stdout:
yield line.rstrip(b'\r\n')