BuildMaster SDK Reference
Version:

CompareDirectories(Inedo.BuildMaster.Files.DirectoryEntryInfo sourceDirectory, Inedo.BuildMaster.Files.DirectoryEntryInfo targetDirectory) Method

Detects differences between a source and target directory.

Syntax

public static Util.Files.Comparison.DirectoryDifferences CompareDirectories(Inedo.BuildMaster.Files.DirectoryEntryInfo sourceDirectory, Inedo.BuildMaster.Files.DirectoryEntryInfo targetDirectory)

Parameters

sourceDirectory
Type: Inedo.BuildMaster.Files.DirectoryEntryInfo

The source directory.

targetDirectory
Type: Inedo.BuildMaster.Files.DirectoryEntryInfo

The target directory.

Returns

Instance of Util.Files.Comparison.DirectoryDifferences which contains a report of the differences.

Exceptions

System.ArgumentNullException

sourceDirectory is null (Nothing in Visual Basic) or targetDirectory is null (Nothing in Visual Basic).