Thiago
Thiago

Reputation: 13302

adb shell copy all currently directory to new folder

I am trying to copy all the content of the currently folder onto another hidden folder:

I want all the content from folderA onto the Folder B

--sdcard
- FoldeA 
- .FolderB >>This is a hidden folder

shell../mnt/sdcard $ cp -a FolderA/. .FolderB >Do not work

shell../mnt/sdcard $ cp FolderA/. .FolderB >Do not work

shell../mnt/sdcard $ cp /FolderA/. /.FolderB/ >Do not work

shell../mnt/sdcard/FolderA $ cp . /.FolderB/ >Do not work

Any suggestion please, thank you

Upvotes: 2

Views: 14037

Answers (3)

Muhammad Asim
Muhammad Asim

Reputation: 11

use cp command with -r

cp -r /FolderA/* /FolderB

Upvotes: 1

NPC
NPC

Reputation: 90

adb pull command, copy the complete directory into destination folder

adb pull /data/local/a /data/local/b/

Upvotes: 0

Rilwan
Rilwan

Reputation: 2301

Basic unix command for copying all files from source to destination-

adb shell cp /data/local/a/* /data/local/b/

Upvotes: 2

Related Questions