In the Documents directory in Sharepoint online I have a sub-directory called Development and a file in there called FontDemoInfo.txt.
In the browser it looks like:
Documents > Development FontDemoInfo.txt
How do I get that file with the
I connect to the Office365 Sharepoint with:
Install-Module SharePointPnPPowerShellOnline Connect-PnPOnline "https://company.sharepoint.com/sites/Company"
Company are the (case-sensitive) default names set up for the site.
If I do
Get-PnPFile -Url "/Development/FontDemoInfo.txt" -AsFile I get a
File Not found. error.
I tried about 10 different combinations of url that I read about (e.g. prefixes with slash, no slash, /Documents, /sites, copy link from the browser etc) but I still can't get the file.
What is the correct way to get this document in Sharepoint using PnP PowerShell?