Get FileCreatorAndFolders

Doug Ware edited this page Aug 18, 2016 · 1 revision

Get-FileCreatorAndFolders

SYNOPSIS

Reads a file from SharePoint, downloads it if necessary to the file system, and adds it to a given manifest.

SYNTAX

Get-FileCreatorAndFolders [-ClientContext] <ClientContext> [-Web] <Web> [-FileWebRelativeUrl] <String> [-DownloadFolderPath <ParameterAttribute>] [-AppManifestJSON <String>] [-AppManifest <AppManifestBase>] [-GetRelatedFileCreators <Boolean>] [-VerboseNotify] [<CommonParameters>]

DESCRIPTION

Reads a file from SharePoint, downloads it if necessary to the file system, and adds it to a given manifest.

Get-FileCreatorAndFolders uses the StorageType property to determine where to save the downloaded file.

Valid values are defined by the [IQAppProvisioningBaseClasses.Provisioning.StorageTypes] enum and are [IQAppProvisioningBaseClasses.Provisioning.StorageTypes]::FileSystem (1) and [IQAppProvisioningBaseClasses.Provisioning.StorageTypes]::AzureStorage (2).

If the value is FileSystem (1) you must set the AppManifestBase.BaseFilePath property to a valid path prior to using this command.

If the value is AzureStorage (2) you must call the AppManifestBase.SetAzureStorageInfo method prior to using this command.

Note that some file types, such as Wiki Pages and Publishing Pages are created from templates and properties. Therefore, the command updates the manifest, but no file is actually downloaded.

If the file is stored in a document library that might not exist on the target site, you should include the list in the manifest using the Get-ListCreator command.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.