There are always going to be times when uploading multiple files to SharePoint will be needed. Mostly, I simply map the document library as a drive and copy the files that way. However, that option isn't always available. The prime examples are the Site Assets and Site Pages document libraries. They don't allow mapping. For those situations, I use the following code to upload the whole directory tree. It is using the Command Line Parser Library that I spoke of in an earlier post and the Microsoft SharePoint Client libraries. Here is the options file:
And here is the program file:
Enjoy! And keep coding!