BExIS.IO.FileHelper.MoveFile C# (CSharp) Method

MoveFile() public static method

public static MoveFile ( string tempFile, string destinationPath ) : bool
tempFile string
destinationPath string
return bool
        public static bool MoveFile(string tempFile, string destinationPath)
        {
            if (File.Exists(tempFile))
            {
                File.Move(tempFile, destinationPath);

                if (File.Exists(destinationPath))
                {
                    return true;
                }
                else return false;
            }
            else return false;
        }