mirror of
https://github.com/google/adb-sync.git
synced 2026-01-03 09:58:01 +00:00
adb-sync: Fix listdir() with Android N.
This commit is contained in:
2
adb-sync
2
adb-sync
@@ -216,7 +216,7 @@ class AdbFileSystem(object):
|
|||||||
|
|
||||||
def listdir(self, path): # os's name, so pylint: disable=g-bad-name
|
def listdir(self, path): # os's name, so pylint: disable=g-bad-name
|
||||||
"""List the contents of a directory."""
|
"""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:
|
self.QuoteArgument(path))]) as stdout:
|
||||||
for line in stdout:
|
for line in stdout:
|
||||||
yield line.rstrip(b'\r\n')
|
yield line.rstrip(b'\r\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user