BuildMaster SDK Reference
Version:

Util.Files.Comparison Class

A set of static methods for file/directory comparison.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Util.Files.Comparison

Syntax

public class Util.Files.Comparison

Methods

Name Description
CompareDirectories(Inedo.BuildMaster.Files.DirectoryEntryInfo sourceDirectory, Inedo.BuildMaster.Files.DirectoryEntryInfo targetDirectory)

Detects differences between a source and target directory.

GetMatches(string pathRoot, Inedo.BuildMaster.Files.SystemEntryInfo entry, string[] masks)

Returns an array of Inedo.BuildMaster.Files.SystemEntryInfo items which match the specified search masks.

GetMatches(string pathRoot, string[] paths, string[] masks)

Returns an array of items which match the specified search masks.

GetNonMatches(string pathRoot, Inedo.BuildMaster.Files.SystemEntryInfo entry, string[] masks)

Returns an array of Inedo.BuildMaster.Files.SystemEntryInfo items which do not match the specified search masks.

GetNonMatches(string pathRoot, string[] paths, string[] masks)

Returns an array of items which do not match the specified search masks.

Remarks

File masks are almost always sent in as a string array. Our file masks work mostly like DOS, in that:

*

Matches zero or more characters

?

Matches exactly one character

So, Build*.dll will match BuildMaster.dll, BuildMaster2.dll, but not BUildMaster.pdb

When a mask starts with a !, anything that doesn't match that wildcard is matched. When used in a set, ! masks take precedence over matches. For example, the masks * AND !* will match nothing *.dll AND !BuildMaster*.dll will match all .dll files that don't start with BuildMaster is matched.