mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Directory write time is now calculated based on the most recent file write to any file inside of that directory.
This commit is contained in:
parent
a68c882032
commit
ead5f37921
4 changed files with 60 additions and 7 deletions
|
@ -50,7 +50,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual void ProcessDownload(DirectoryInfo subfolderInfo)
|
||||
{
|
||||
if (subfolderInfo.Name.StartsWith("_") && subfolderInfo.LastWriteTimeUtc.AddMinutes(1) > DateTime.UtcNow)
|
||||
if (subfolderInfo.Name.StartsWith("_") && _diskProvider.GetLastDirectoryWrite(subfolderInfo.FullName).AddMinutes(2) > DateTime.UtcNow)
|
||||
{
|
||||
Logger.Trace("[{0}] is too fresh. skipping", subfolderInfo.Name);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue