adb android shell

how to push folders from computer into sdcard using adb shell

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

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

it copies all the 5 files inside the B subfolder into /sdcard/fooBar

How do I copy the entire subfolder B into the android device so that the fodler structure inside the device looks like /sdcard/fooBar/B/5-files?