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:
parent
f77b0ec552
commit
f85918b5bf
7 changed files with 803 additions and 4 deletions
13
API/Extensions/FileInfoExtensions.cs
Normal file
13
API/Extensions/FileInfoExtensions.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue