public Entry CompareDirectories(string leftDirPath, string rightDirPath, CompareOptions options) { var dirEntry = new DirEntry { Left = new DirItem(leftDirPath), Right = new DirItem(rightDirPath) }; dirEntry.Populate(); dirEntry.Compare(FileComparerFactory.Create(options)); return dirEntry; }
internal static IFileComparer Create(CompareOptions options) { switch (options.CompareType) { case CompareType.DateTime: return new DateTimeFileComparer(); case CompareType.Binary: throw new NotImplementedException(); default: throw new NotImplementedException(); } }