Hello Team,
Hope you are doing well!
I have one doubt about the functionality of a method "public void MoveTo(string newUrl, bool bOverWrite)" in SharePoint 2019 (Program written in C# and created custom solution).
Scenario - We are trying to move the file from one Library to another Library in the same site collection. just wanted to understand the sequence of event occurred behind the scene. As it does create the item first in target library and then delete the file from source Library. Though it worked differently in case of file moving within the library from one folder to other folder as it lifts and shift the file.
Question: is there any chance that this method will delete the file first and create file later? or this can't happened any time?
The reason for asking this is, we wanted to ensure the file movement with highest degree of integrity and we must not miss the file.
Thanks!