mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 09:35:43 -05:00
* Include ManagedBatchParser test to improve code coverage * Fix some failing test cases and revert appveyor.yml
20 lines
581 B
C#
20 lines
581 B
C#
using System.IO;
|
|
|
|
namespace Microsoft.SqlTools.ManagedBatchParser.IntegrationTests.Utility
|
|
{
|
|
internal class FileUtilities
|
|
{
|
|
/// <summary>
|
|
/// Turns off the read-only attribute for this file
|
|
/// </summary>
|
|
/// <param name="fullFilePath"></param>
|
|
internal static void SetFileReadWrite(string fullFilePath)
|
|
{
|
|
if (!string.IsNullOrEmpty(fullFilePath) &&
|
|
File.Exists(fullFilePath))
|
|
{
|
|
File.SetAttributes(fullFilePath, FileAttributes.Normal);
|
|
}
|
|
}
|
|
}
|
|
} |