This commit is contained in:
Mike Phares 2023-12-25 21:26:34 -07:00
parent 1355cd0241
commit c2c711673f
2 changed files with 8 additions and 9 deletions

View File

@ -457,15 +457,9 @@ public partial class DlibDotNet
}
}
if (result)
{
if (result)
{ }
}
result = true;
if (!result)
{
if (!result)
{ }
}
result = false;
return result;
}

View File

@ -88,7 +88,12 @@ internal abstract class Container
bool? fileSizeChanged = property is not null ? property.FileSize != filePath.Length : null;
bool isValidImageFormatExtension = propertyConfiguration.ValidImageFormatExtensions.Contains(filePath.ExtensionLowered);
if (property is not null && property.Keywords is not null && !IId.IsIgnore(filePath) && propertyConfiguration.IgnoreRulesKeyWords.Any(l => property.Keywords.Contains(l)))
{
if (filePath.DirectoryName.Contains("Results") && filePath.DirectoryName.Contains("Resize"))
File.Delete(filePath.FullName);
else
throw new NotSupportedException($"Rename File! <{filePath.FileNameFirstSegment}>");
}
string relativePath = IPath.GetRelativePath(filePair.Path, rootDirectoryLength, forceExtensionToLower: true);
bool? lastWriteTimeChanged = property is not null ? propertyConfiguration.PropertiesChangedForProperty || property.LastWriteTime.Ticks != filePath.LastWriteTicks : null;
if (filePair.Match is not null)