Don't go to archive file if it hasn't updated since last scan (#135)
* Skip archive work unless the file has actually changed since last scan.
This commit is contained in:
parent
237542b493
commit
667d1d2a4d
2 changed files with 9 additions and 6 deletions
|
@ -9,5 +9,10 @@ namespace API.Extensions
|
|||
{
|
||||
return comparison.Equals(fileInfo.LastWriteTime);
|
||||
}
|
||||
|
||||
public static bool IsLastWriteOlder(this FileInfo fileInfo, DateTime comparison)
|
||||
{
|
||||
return comparison > fileInfo.LastWriteTime;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue