Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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();
     }
 }