I upload files from the local drive to sharepoint site using powershell
I have a list " Documents " , he contains a folder named " X "
My issue is : How to upload files to X folder
This my code :
$SiteURL = "domain/sites/testing/"
$libraryName="Documents/X"
$SPOnlineUserName="user@domain"
The script work fine when i upload to Documents ($libraryName
variable is " Documents ")
But when $libraryName="Documents/X"
folder , i get this error :
List 'Documents/X' does not exist at site with URL 'domain/sites/testing'
Any Idea to resolve this ?
[Edit]
I can access to "X" folder via browser.
Best.