From e6d9ffdbb05c8886f816dde9e15016437f97cf4a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 27 Nov 2018 13:45:16 -0800 Subject: [PATCH] Do not cut off final slash from source path. Other than somewhat annoying // in path names printed or passed to adb push/pull, this breaks nothing. Fixes #9. --- adb-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb-sync b/adb-sync index c08db4a..9c5692a 100755 --- a/adb-sync +++ b/adb-sync @@ -640,7 +640,7 @@ def FixPath(src: bytes, dst: bytes) -> Tuple[bytes, bytes]: if pos >= 0: if src.endswith(b'/'): # Final slash: copy to the destination "as is". - src = src[:-1] + pass else: # No final slash: destination name == source name. append = src[pos:]