When we scan a library, store the last write time for a file so we can skip page calculation if there were no modifications.

This commit is contained in:
Joseph Milazzo 2021-03-23 17:28:48 -05:00
parent f77b0ec552
commit f85918b5bf
7 changed files with 803 additions and 4 deletions

View file

@ -0,0 +1,13 @@
using System;
using System.IO;
namespace API.Extensions
{
public static class FileInfoExtensions
{
public static bool DoesLastWriteMatch(this FileInfo fileInfo, DateTime comparison)
{
return comparison.Equals(fileInfo.LastWriteTime);
}
}
}