Its uses internal SharePoint Client Object Model functions to do the copying, moving work. These functions can be found here for more info:
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.moveto.aspx
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.copyto.aspx
As an example, if I want to copy a file from one document library to another in a SharePoint site, and the location of the file is as follows:
https://bandr.sharepoint.com/sites/BSteinhauser/SitePages/bagt1.aspx
Lets say the new library folder to move the file is here:
"/sites/BSteinhauser/OtherPages"
Thats what the server relative url would be. At this time, leave out the filename as it reuses the current file name when using the command.
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.moveto.aspx
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.copyto.aspx
As an example, if I want to copy a file from one document library to another in a SharePoint site, and the location of the file is as follows:
https://bandr.sharepoint.com/sites/BSteinhauser/SitePages/bagt1.aspx
Lets say the new library folder to move the file is here:
"/sites/BSteinhauser/OtherPages"
Thats what the server relative url would be. At this time, leave out the filename as it reuses the current file name when using the command.