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

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)
This commit is contained in:
Thibault Saunier
2017-04-11 18:07:40 -03:00
committed by divVerent
parent 861eb4bbb3
commit b8813dc214

View File

@@ -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)