using System;
using System.IO;
namespace API.Extensions
{
public static class FileInfoExtensions
{
///
/// Checks if the last write time of the file is after the passed date
///
///
///
///
public static bool HasFileBeenModifiedSince(this FileInfo fileInfo, DateTime comparison)
{
return fileInfo?.LastWriteTime > comparison;
}
}
}