From f345a79f93c4c228dd083c29b0f4614e5c52e2a8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 25 Aug 2016 09:26:45 -0400 Subject: [PATCH] adb-sync: Fix listdir() with Android N. --- adb-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb-sync b/adb-sync index a498bbf..adfbf1a 100755 --- a/adb-sync +++ b/adb-sync @@ -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')