Upload a folder and its contents to SharePoint

%3CLINGO-SUB%20id%3D%22lingo-sub-1003009%22%20slang%3D%22en-US%22%3EUpload%20a%20folder%20and%20its%20contents%20to%20SharePoint%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1003009%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20PNP%20way%20to%20upload%20a%20folder%20and%20its%20contents%20to%20SharePoint.%20I've%20been%20using%20robocopy%20%2B%20onedrive%20but%20SharePoint%2FOneDrive%20throttles%20that%20like%20crazy%20so%20I'm%20looking%20at%20using%20PNP.%20Do%20I%20really%20just%20have%20to%20iterate%20through%20the%20folder%20and%20mess%20with%20the%20file%20paths%20and%20Add-PnpFile%2FAdd-PnpFolder%20for%20each%20item%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1010314%22%20slang%3D%22en-US%22%3ERe%3A%20Upload%20a%20folder%20and%20its%20contents%20to%20SharePoint%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1010314%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F455633%22%20target%3D%22_blank%22%3E%40Shane2290%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Shane%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20if%20you%20have%20heard%20the%20SharePoint%20Migration%20tool%20to%20OneDrive%2FSharePoint%20Online%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepointmigration%2Fintroducing-the-sharepoint-migration-tool%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepointmigration%2Fintroducing-the-sharepoint-migration-tool%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharegate.com%2Fblog%2Four-take-microsoft-free-sharepoint-migration-tool%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharegate.com%2Fblog%2Four-take-microsoft-free-sharepoint-migration-tool%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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