Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

pull or push folder #195

Open
xujianxin0525 opened this issue Aug 13, 2020 · 4 comments
Open

pull or push folder #195

xujianxin0525 opened this issue Aug 13, 2020 · 4 comments

Comments

@xujianxin0525
Copy link

xujianxin0525 commented Aug 13, 2020

Could you add a function that pull android folder to local folder?

pull push

@bddckr
Copy link

bddckr commented Aug 13, 2020

Already offered, isn't it? https://github.com/quamotion/madb#send-or-receive-files

@xujianxin0525
Copy link
Author

xujianxin0525 commented Aug 14, 2020

Already offered, isn't it? https://github.com/quamotion/madb#send-or-receive-files
Thanks for your replay.
It seems that I can only pull out files. I want to pull out the entire folder. Is that possible?
Like adb command:adb -s DLLKR17223005174 pull /sdcard/data C:\ADB_Log. "/sdcard/data" is a folder pah.

@qmfrederik
Copy link
Contributor

There isn't a single convenience method you can call to achieve this (because it's not part of the adb protocol).

The adb client which ships with the ADK will first do a file listing and then download all files, one by one: https://android.googlesource.com/platform/system/core/+/master/adb/client/file_sync_client.cpp#1605

In SharpAdbClient, this would be equivalent to first calling SyncService.GetDirectoryListing and then downloading the files one by one.

Hope it helps.

@xujianxin0525
Copy link
Author

I see, thanks for your replay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants