Blog.Common.Utils.Helpers.FileHelper.MoveFile C# (CSharp) Method

MoveFile() public method

public MoveFile ( string sourcePath, string targetPath ) : bool
sourcePath string
targetPath string
return bool
        public bool MoveFile(string sourcePath, string targetPath)
        {
            try
            {
                File.Move(sourcePath, targetPath);
                return true;
            }
            catch (Exception ex)
            {
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }
    }