Files
BinaryObjectScanner/BurnOutSharp/IPathCheck.cs
2021-02-26 00:32:09 -08:00

17 lines
725 B
C#

using System.Collections.Generic;
namespace BurnOutSharp
{
public interface IPathCheck
{
/// <summary>
/// Check a path for protections based on file and directory names
/// </summary>
/// <param name="path">Path to check for protection indicators</param>
/// <param name="files">Enumerable of strings representing files in a directory if the path is a directory, assumed null otherwise</param>
/// <param name="isDirectory">True if the path represents a directory, false otherwise</param>
/// <returns>String containing any protections found in the path</returns>
string CheckPath(string path, IEnumerable<string> files, bool isDirectory);
}
}