if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null)
{
Add-PSSnapin Microsoft.SharePoint.PowerShell
}
$spWeb=Get-SPWeb -identity "http://sharepoint.contoso.com/Corporate/Sales/"
$spFolder =$spWeb.GetFolder("arizona")
$spFileCollection =$spFolder.Files
Get-ChildItem "\Daily Reports\arizona\" -filter "*.xlsx" | ForEach {
$spFileCollection.Add("arizona/$($_.Name)",$_.OpenRead(),$true)
}
$web.Dispose()
My problem is arizona is not the top level folder but is under shared documents which is the top level document library.
How do I go about adding documents to my arizona folder from my network directory?