Appending wildcard to src causes problems
Appending wildcard to src causes problems

It appears that the desired effect was to support
    src = "dir" -> dest/dir
    src = "dir/" -> dest

but cp -R already handles this, provided the trailing slash does not
get consumed by the shell.

The wildcard causes problems when multiple files match the
shell glob, e.g.

UploadDir("/tmp", "./salt*", [])

where my working dir contains
 - salt
 - salt-foo

will error.

oliviertremblay/packer,manicai/packer,ephemeralsnow/packer,jamesbishopp/packer,ober/packer,feateds/packer,marc-ta/packer,rodm/packer,p1-nico/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,dieu/packer,jamesleech/packer,styro/packer,AlphaStaxLLC/packer,uber/packer,hashicorp/packer,noplay/packer,boumenot/packer,hazelesque/packer,pecigonzalo/packer,qur/packer,tb3088/packer,shaunduncan/packer,marc-ta/packer,bhcleek/packer,yonglehou/packer,hasJackb/packer,mefellows/packer,tsmolka/packer,evertrue/packer,zeliff/packer,rickard-von-essen/packer,avldya/packer,grubernaut/packer,kpettijohn/packer,kgrvamsi/packer,monsterzz/packer,lantrix/packer,jasonchaffee/packer,dantran/packer,aneeshusa/packer,ldejager/packer,life360/packer,jarl-dk/packer,shaunduncan/packer,sgirones/packer,jae2/packer,mayflower/packer,stagrlee/packer,ChrisLundquist/packer,jen20/packer,dieu/packer,bensojona/packer,tsmolka/packer,danschaffer/packer,legal90/packer,bensojona/packer,dayglojesus/packer,bensojona/packer,paulmey/packer,atlassian/packer,timsutton/packer,arizvisa/packer,tas50/packer,mayflower/packer,ephemeralsnow/packer,icnocop/packer,mitchellh/packer,napramirez/packer,dantran/packer,eranchetz/packer,arizvisa/packer,higebu/packer,feateds/packer,dayglojesus/packer,jen20/packer,tas50/packer,sgirones/packer,tomwilkie/packer,pieter-lazzaro/packer,vtolstov/packer,visioncritical/packer,paulvollmer/packer,jimmythedog/packer,jimmythedog/packer,beni55/packer,israelshirk/packer,mkuzmin/packer,bensojona/packer,pecigonzalo/packer,sean-/packer,ricardclau/packer,jasonchaffee/packer,marc-ta/packer,uber/packer,tb3088/packer,stagrlee/packer,gildas/packer-hyperv,israelshirk/packer,zakuro9715/packer,trumant/packer,threatstream/packer,tomwilkie/packer,smaato/packer,jamesbishopp/packer,arizvisa/packer,jsoriano/packer,KohlsTechnology/packer,monkeylittleinc/packer,esemplare/packer,taliesins/packer,markpeek/packer,sneal/packer,pvandervelde/packer,jae2/packer,ttaylor249/packer,Xiol/packer,paulmey/packer,noplay/packer,danschaffer/packer,fnoeding/packer,smaato/packer,vtolstov/packer,eranchetz/packer,jen20/packer,noplay/packer,lantrix/packer,quantang/packer,jae2/packer,burnzy/packer,hazelesque/packer,paulvollmer/packer,jszwedko/packer,manicai/packer,AlphaStaxLLC/packer,boumenot/packer,fnoeding/packer,hasJackb/packer,sneal/packer,paulmey/packer,mafrosis/packer,ChrisLundquist/packer,pieter-lazzaro/packer,gbarberi/packer,taliesins/packer,ephemeralsnow/packer,KohlsTechnology/packer,leroux/packer,sequenceiq/packer,dave2/packer,kpettijohn/packer,jae2/packer,justincampbell/packer,monkeylittleinc/packer,Cbeck527/packer,mitchellh/packer,taliesins/packer,ober/packer,quantang/packer,pearkes/packer,masbog/packer,jonathankarsh/packer,mohae/packer,icnocop/packer,henrysher/packer,mvanholsteijn/packer,tracyde/packer,tsmolka/packer,ricardclau/packer,henrysher/packer,quantang/packer,visioncritical/packer,bryson/packer,sobrinho/packer,mansunkuo/packer,boumenot/packer,dev-head/packer,threatstream/packer,bhcleek/packer,AlphaStaxLLC/packer,markpeek/packer,mitchellh/packer,dave2/packer,KohlsTechnology/packer,blairham/packer,grubernaut/packer,mansunkuo/packer,mwhooker/packer,jean/packer,fnoeding/packer,jasonchaffee/packer,jimmythedog/packer,rnaveiras/packer,dev-head/packer,mansunkuo/packer,jgkim/packer,rickard-von-essen/packer,tracyde/packer,leroux/packer,KohlsTechnology/packer,monsterzz/packer,jsoriano/packer,bryson/packer,tas50/packer,mindjiver/packer,ttaylor249/packer,blairham/packer,BayanGroup/packer,KFishner/packer,kpettijohn/packer,qur/packer,legal90/packer,Silver90/packer,KohlsTechnology/packer,leroux/packer,smaato/packer,dantran/packer,legal90/packer,mkuzmin/packer,Sheile/packer,jmptrader/packer,grubernaut/packer,mkuzmin/packer,dev-head/packer,threatstream/packer,yonglehou/packer,masbog/packer,mohae/packer,noplay/packer,dragon788/packer,fnoeding/packer,grange74/packer,dragon788/packer,ephemeralsnow/packer,jamesbishopp/packer,BayanGroup/packer,grange74/packer,smaato/packer,youhong316/packer,tas50/packer,arizvisa/packer,taliesins/packer,LinusU/packer,paulmey/packer,mafrosis/packer,higebu/packer,zakuro9715/packer,bhcleek/packer,rrva/packer,avldya/packer,sgirones/packer,routelastresort/packer,shaunduncan/packer,mansunkuo/packer,jsternberg/packer,cyberhouse/packer,grange74/packer,mindjiver/packer,quantang/packer,samdunne/packer,orivej/packer,manicai/packer,sobrinho/packer,p1-nico/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,rk295/packer,dave2/packer,cyberhouse/packer,mkuzmin/packer,arizvisa/packer,rrva/packer,yoctocloud/packer,dragon788/packer,beni55/packer,aneeshusa/packer,mansunkuo/packer,btd/packer,Cbeck527/packer,c22/packer,markpeek/packer,icnocop/packer,israelshirk/packer,timsutton/packer,eranchetz/packer,monsterzz/packer,esemplare/packer,zeliff/packer,atlassian/packer,avldya/packer,dantran/packer,dieu/packer,zhuzhih2017/packer,atlassian/packer,napramirez/packer,BayanGroup/packer,Banno/packer,bhcleek/packer,ricardclau/packer,sequenceiq/packer,sean-/packer,sean-/packer,jamesbishopp/packer,gildas/packer-hyperv,dayglojesus/packer,mkuzmin/packer,DualSpark/packer,pearkes/packer,jen20/packer,jmptrader/packer,mvanholsteijn/packer,yoctocloud/packer,boumenot/packer,napramirez/packer,gbarberi/packer,sean-/packer,qur/packer,rodm/packer,jsternberg/packer,gbarberi/packer,rnaveiras/packer,jszwedko/packer,jonathankarsh/packer,hashicorp/packer,zeliff/packer,mindjiver/packer,icnocop/packer,jsoriano/packer,Silver90/packer,taliesins/packer,burnzy/packer,jean/packer,jszwedko/packer,tb3088/packer,jarl-dk/packer,routelastresort/packer,Banno/packer,danschaffer/packer,mefellows/packer,gildas/packer-hyperv,higebu/packer,bryson/packer,mgk/packer,zakuro9715/packer,jean/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,tas50/packer,sneal/packer,mafrosis/packer,timsutton/packer,mwhooker/packer,dieu/packer,rnaveiras/packer,rickard-von-essen/packer,LinusU/packer,oliviertremblay/packer,yoctocloud/packer,c22/packer,smaato/packer,umang1912/packer,samdunne/packer,napramirez/packer,jmptrader/packer,marc-ta/packer,justincampbell/packer,ricardclau/packer,c22/packer,jgkim/packer,danschaffer/packer,mayflower/packer,Sheile/packer,ChrisLundquist/packer,jamesleech/packer,jarl-dk/packer,evertrue/packer,hazelesque/packer,rodm/packer,tas50/packer,burnzy/packer,grubernaut/packer,jasonchaffee/packer,tsmolka/packer,jonathankarsh/packer,feateds/packer,rnaveiras/packer,pvandervelde/packer,pvanbuijtene/packer,stagrlee/packer,mohae/packer,styro/packer,arizvisa/packer,sobrinho/packer,mvanholsteijn/packer,Akasurde/packer,jsternberg/packer,trumant/packer,sansb/packer,jasonchaffee/packer,styro/packer,Sheile/packer,zhuzhih2017/packer,jsternberg/packer,ChrisLundquist/packer,Akasurde/packer,ttaylor249/packer,ober/packer,tb3088/packer,sansb/packer,pvanbuijtene/packer,sobrinho/packer,sneal/packer,Banno/packer,grubernaut/packer,leroux/packer,umang1912/packer,cyberhouse/packer,stagrlee/packer,esemplare/packer,avldya/packer,samdunne/packer,rk295/packer,ttaylor249/packer,danschaffer/packer,pvanbuijtene/packer,yoctocloud/packer,LinusU/packer,jszwedko/packer,qur/packer,DualSpark/packer,btd/packer,KFishner/packer,visioncritical/packer,dantran/packer,mayflower/packer,markpeek/packer,LinusU/packer,eranchetz/packer,oliviertremblay/packer,henrysher/packer,israelshirk/packer,threatstream/packer,paulmey/packer,zakuro9715/packer,ldejager/packer,justincampbell/packer,jgkim/packer,life360/packer,dev-head/packer,aneeshusa/packer,beni55/packer,jamesleech/packer,bhcleek/packer,jen20/packer,dragon788/packer,sean-/packer,rnaveiras/packer,Cbeck527/packer,KFishner/packer,p1-nico/packer,dave2/packer,mitchellh/packer,blairham/packer,ttaylor249/packer,threatstream/packer,pvandervelde/packer,sgirones/packer,jsoriano/packer,taliesins/packer,rickard-von-essen/packer,jarl-dk/packer,trumant/packer,icnocop/packer,youhong316/packer,manicai/packer,pearkes/packer,c22/packer,Silver90/packer,youhong316/packer,zhuzhih2017/packer,masbog/packer,mefellows/packer,hazelesque/packer,sequenceiq/packer,p1-nico/packer,higebu/packer,kgrvamsi/packer,beni55/packer,youhong316/packer,monkeylittleinc/packer,mwhooker/packer,Sheile/packer,life360/packer,bryson/packer,styro/packer,hashicorp/packer,rk295/packer,mindjiver/packer,atlassian/packer,marklap/packer,vtolstov/packer,kgrvamsi/packer,tsmolka/packer,burnzy/packer,Xiol/packer,esemplare/packer,c22/packer,timsutton/packer,dayglojesus/packer,lantrix/packer,zhuzhih2017/packer,rrva/packer,pieter-lazzaro/packer,pecigonzalo/packer,Akasurde/packer,pieter-lazzaro/packer,lantrix/packer,KohlsTechnology/packer,cyberhouse/packer,mafrosis/packer,life360/packer,shaunduncan/packer,quantang/packer,evertrue/packer,zhuzhih2017/packer,paulvollmer/packer,timsutton/packer,rrva/packer,justincampbell/packer,oliviertremblay/packer,gildas/packer-hyperv,orivej/packer,uber/packer,grubernaut/packer,mwhooker/packer,pearkes/packer,higebu/packer,markpeek/packer,jimmythedog/packer,umang1912/packer,sneal/packer,yonglehou/packer,p1-nico/packer,umang1912/packer,pvandervelde/packer,youhong316/packer,pvandervelde/packer,yoctocloud/packer,marklap/packer,DualSpark/packer,btd/packer,esemplare/packer,dave2/packer,zeliff/packer,Xiol/packer,ricardclau/packer,evertrue/packer,ober/packer,ChrisLundquist/packer,sansb/packer,Akasurde/packer,masbog/packer,routelastresort/packer,rk295/packer,vtolstov/packer,youhong316/packer,uber/packer,routelastresort/packer,yonglehou/packer,orivej/packer,bryson/packer,trumant/packer,tsmolka/packer,visioncritical/packer,mafrosis/packer,bryson/packer,jonathankarsh/packer,mwhooker/packer,Silver90/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,vtolstov/packer,c22/packer,mgk/packer,sansb/packer,Cbeck527/packer,tracyde/packer,grange74/packer,samdunne/packer,jamesleech/packer,samdunne/packer,pvandervelde/packer,rodm/packer,hasJackb/packer,tomwilkie/packer,marklap/packer,ChrisLundquist/packer,routelastresort/packer,mgk/packer,monkeylittleinc/packer,paulvollmer/packer,tracyde/packer,tb3088/packer,hasJackb/packer,gbarberi/packer,mefellows/packer,KFishner/packer,p1-nico/packer,marklap/packer,hashicorp/packer,life360/packer,pieter-lazzaro/packer,dave2/packer,boumenot/packer,pieter-lazzaro/packer,Akasurde/packer,zhuzhih2017/packer,legal90/packer,markpeek/packer,paulmey/packer,henrysher/packer,sean-/packer,ober/packer,btd/packer,tb3088/packer,mvanholsteijn/packer,pecigonzalo/packer,orivej/packer,mayflower/packer,mohae/packer,legal90/packer,mohae/packer,atlassian/packer,pvanbuijtene/packer,mitchellh/packer,kgrvamsi/packer,atlassian/packer,mkuzmin/packer,ricardclau/packer,kpettijohn/packer,dayglojesus/packer,ldejager/packer,Xiol/packer,tomwilkie/packer,rickard-von-essen/packer,jmptrader/packer,grange74/packer,monkeylittleinc/packer,jen20/packer,smaato/packer,AlphaStaxLLC/packer,sequenceiq/packer,ldejager/packer,rnaveiras/packer,jimmythedog/packer,Cbeck527/packer,blairham/packer,BayanGroup/packer,ephemeralsnow/packer,jean/packer,timsutton/packer,mgk/packer,monsterzz/packer,pvanbuijtene/packer,feateds/packer,DualSpark/packer,aneeshusa/packer,jgkim/packer