From b8813dc21453e2ad940e807fab7b00b16642c8b8 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 11 Apr 2017 18:07:40 -0300 Subject: [PATCH] adb-sync: Allow syncing symlinks (#4) It is artificial limitation and actually works with adb (though it might not work with absolute links, same as with rsync) --- adb-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb-sync b/adb-sync index 2c68707..53c37c1 100755 --- a/adb-sync +++ b/adb-sync @@ -324,7 +324,7 @@ def BuildFileList(fs, path, prefix=b''): continue for t in BuildFileList(fs, path + b'/' + n, prefix + b'/' + n): yield t - elif stat.S_ISREG(statresult.st_mode): + elif stat.S_ISREG(statresult.st_mode) or stat.S_ISLNK(statresult.st_mode): yield prefix, statresult else: _print(b'Note: unsupported file: %s', path)