Command
Get-Folder
Description
The command to get a folder from a SharePoint list or from a File Share.
Examples
Get Folder Share folder
Get-Folder -Path "G:\MyFolder"Title : MyFolder FileType : FileShare List : Address : file:///G:/MyFolder/ Web :
Get SharePoint Folder
$srcSite = Connect-Site -Url "http://myfarm1/sites/mysitecollection" $srcList = Get-List -site $srcSite -name "MyList" Get-Folder -List $srcList -Path "MyFolder/MySubFolder"Title : MySubFolder FileType : SharePoint List : Sharegate.Automation.Entities.List Address : http://myfarm1/sites/mysitecollection/MyList/MyFolder/MySubFolder Web : Sharegate.Infrastructure.Models.SharePoint.SGWeb
Syntax
Get-Folder-List <List> -Path <Uri>
Get-Folder-Path <Uri>
Parameters
-List <List>
Specifies the SharePoint List.
Required? | True |
Default value | None |
Accept pipeline input? | True (ByValue) |
Accept wildcard characters? | False |
Parameter set name | SharePoint |
Aliases | None |
-Path <Uri>
Specifies the relative path from the SharePoint list or the absolute path of a File Share.
Required? | True |
Default value | None |
Accept pipeline input? | False |
Accept wildcard characters? | False |
Parameter set name | (All) |
Aliases | None |