Files
BinaryObjectScanner/BurnOutSharp/IPathCheck.cs
2021-03-19 15:48:53 -07:00

24 lines
1.1 KiB
C#

using System.Collections.Generic;
namespace BurnOutSharp
{
public interface IPathCheck
{
/// <summary>
/// Check a file path for protections based on path name
/// </summary>
/// <param name="path">Path to check for protection indicators</param>
/// <param name="files">Enumerable of strings representing files in a directory</param>
/// <remarks>This can do some limited content checking as well, but it's suggested to use IContentCheck instead, if possible</remarks>
/// TODO: This should return a dictionary of file to protection mappings instead of just a single string
string CheckDirectoryPath(string path, IEnumerable<string> files);
/// <summary>
/// Check a file path for protections based on path name
/// </summary>
/// <param name="path">Path to check for protection indicators</param>
/// <remarks>This can do some limited content checking as well, but it's suggested to use IContentCheck instead, if possible</remarks>
string CheckFilePath(string path);
}
}