Upload a folder and its contents to SharePoint

Copper Contributor

Hi,

 

I'm looking for a PNP way to upload a folder and its contents to SharePoint. I've been using robocopy + onedrive but SharePoint/OneDrive throttles that like crazy so I'm looking at using PNP. Do I really just have to iterate through the folder and mess with the file paths and Add-PnpFile/Add-PnpFolder for each item?

 

Thanks

1 Reply