Skip to content

New command: Move a file to a different location #671

@phawrylak

Description

@phawrylak

Move a file to another location

command: spo file move -u|--webUrl <webUrl> -s|--sourceUrl <sourceUrl> -t|--targetUrl <targetUrl> --deleteIfAlreadyExists

  • webUrl: The URL of the site where the file is located
  • sourceUrl: Site-relative URL of the file to move
  • targetUrl: Server-relative URL where to move the file
  • deleteIfAlreadyExists: If a file already exists at the targetUrl, it will be moved to the recycle bin. If omitted, the move operation will be canceled if the file already exists at the targetUrl location

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions