Skip to main content

Get Folder

Note: PowerShell integration requires a ShareGate Migrate Pro or Enterprise subscription. It is not available on the Essentials plan.

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    : MyFolderFileType : FileShareList     :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    : MySubFolderFileType : SharePointList     : Sharegate.Automation.Entities.ListAddress  : http://myfarm1/sites/mysitecollection/MyList/MyFolder/MySubFolderWeb      : 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

Did this answer your question?