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:
committed by
divVerent
parent
861eb4bbb3
commit
b8813dc214
2
adb-sync
2
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)
|
||||
|
||||
Reference in New Issue
Block a user