This script demo shows how to upload local folder, its subfolders and items to site library.
Sometimes, we need to upload some file and folders. However, it is not convenient to achieve that. And I think a script will be better.?
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery