I have one function which uses
SearchExecutor finds to find the path of a specified file, which returns a string like.
I have another function which creates and returns a
- The filename,
- The file location, and
- The Folder.
How can I copy the file to the folder?
If it helps, the ServerRelativePath has been initialized on the Folder with:
Folder itemFolder = folderItem.Folder; context.Load(itemFolder, folder => folder.ServerRelativePath); context.ExecuteQuery(); return itemFolder;