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

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.
This commit is contained in:
Rudolf Polzer
2018-11-27 13:45:16 -08:00
parent 3d9683d290
commit e6d9ffdbb0

View File

@@ -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:]