How to pop folders from computer to SD card using adb shell

If I have a folder structure on my computer, such as A \ B and subfolder B contains 5 files if I issue a command

adb push c:\programs\A\*.* /sdcard/fooBar 

it copies all 5 files inside subfolder B to / sdcard / fooBar
How to copy the entire subfolder B to the android device so that the structure of the false encoder inside the device looks like /sdcard/fooBar/B/5-files ?

+7
android shell adb
source share
2 answers

Do not use \*.* May be ok

 adb push c:\programs\A\ /sdcard/fooBar/ 
+8
source share
 adb push c:\programs\A\B /sdcard/fooBar/B 
+4
source share

All Articles