dired-rsync
dired-rsync copied to clipboard
fails when target is /adb::/sdcard
Hello,
This is a great addition to the community. Thanks for it!
Just thought I'd let you know, this doesn't seem to work with adb unfortunately.
I get an error like this:
ssh: Could not resolve hostname : Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.3]
Can you actually rsync over adb? I suspect this is because we are just using tramp-remote-file-p rather than specifically testing we are on an ssh connection. Of course we could detect adb and use a different handler in that case (adb push/adb pull?).
TBH I realised the next morn I was being a bit silly because its adb.
Suppose the main issue is using adb in emacs is sync and not async so it hangs with large file copies. Would be nice to use something async like dired-rsync.
@divansantana there is no reason why the same sort of approach can't be done - in fact the code would be almost identical, just invoking a different inferior command.