Add IPathCheck interface

This commit is contained in:
Matt Nadareski
2021-02-26 00:32:09 -08:00
parent df1e14b6c9
commit c6eaafebbe
44 changed files with 185 additions and 126 deletions

View File

@@ -7,7 +7,7 @@ using System.Text;
namespace BurnOutSharp.ProtectionType
{
public class SafeDisc
public class SafeDisc : IPathCheck
{
public static string CheckContents(string file, byte[] fileContent, bool includePosition = false)
{
@@ -59,7 +59,8 @@ namespace BurnOutSharp.ProtectionType
return null;
}
public static string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
/// <inheritdoc/>
public string CheckPath(string path, IEnumerable<string> files, bool isDirectory)
{
if (isDirectory)
{