Dev2.FileSystem.Move C# (CSharp) Method

Move() public method

public Move ( Uri sourcePath, Uri destinationPath, bool overWrite = false, string userName = "", string password = "" ) : void
sourcePath System.Uri
destinationPath System.Uri
overWrite bool
userName string
password string
return void
        public void Move(Uri sourcePath, Uri destinationPath, bool overWrite = false, string userName = "",
            string password = "")
        {
            if (overWrite)
            {
                File.Delete(destinationPath.LocalPath);
                File.Move(sourcePath.LocalPath, destinationPath.LocalPath);
            }
            else
            {
                File.Move(sourcePath.LocalPath, destinationPath.LocalPath);
            }
        }
    }