Skip to content

New command: Copy folder #424

@VelinGeorgiev

Description

@VelinGeorgiev

Copy the specified folder to another location

  • command: spo folder copy -u|--webUrl <webUrl> -s|--sourceUrl <sourceUrl> -t|--targetUrl <targetUrl> --deleteIfAlreadyExists
  • webUrl: The URL of the site where the folder is located
  • sourceUrl: site-relative URL of the folder to copy
  • targetUrl: server-relative URL where to copy the folder
  • deleteIfAlreadyExists: If provided, if a file already exists at the targetUrl, it will be overwritten. If ommitted, the copy operation will be canceled if the file already exists at the targetUrl location.
  • requires connection to a SharePoint site

For more information see the Copy-PnPFile cmdlet

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions