< Back

Add-GDriveFolder

Mon Jan 13, 2020 10:20 pm

NAME Add-GDriveFolder



SYNOPSIS

Creates new GoogleDrive Item, set metadata and upload content





SYNTAX

Add-GDriveFolder [-Path] <Object> [[-ParentID] <String[]>] [-Recurse] [-ShowProgress] [-AccessToken] <String>

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates new GoogleDrive Item, set metadata and upload content





PARAMETERS

-Path <Object>

Path to folder to upload



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ParentID <String[]>

Folder ID in which new item will be placed



Required? false

Position? 2

Default value @('root')

Accept pipeline input? false

Accept wildcard characters? false



-Recurse [<SwitchParameter>]

Recursive upload



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-ShowProgress [<SwitchParameter>]

Show progress bar while uploading



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-AccessToken <String>

Access Token for request



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Json with uploaded folder metadata as PSObject





NOTES





Author: Max Kozlov



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-GDriveFolder -AccessToken $access_token -Path D:\\SomeFolder















RELATED LINKS

New-GDriveFolder

Add-GDriveItem