BuildMaster SDK Reference
Version:

DirectoryEntryBuilder Class

Helper for constructing DirectoryEntryInfo trees.

Inheritance Hierarchy

  • object
    • Inedo.BuildMaster.Files.DirectoryEntryBuilder

Syntax

public class DirectoryEntryBuilder

Constructors

Name Description
DirectoryEntryBuilder(string name)

Initializes a new instance of the DirectoryEntryBuilder class.

Properties

Name Description
Directories

Gets the children of the entry.

Files

Gets the files contained in this directory.

Name

Gets or sets the name of the entry.

Parent

Gets the parent entry.

Path

Gets the path of the entry using / as the separator.

Methods

Name Description
AddFile(string name)

Adds a new file.

AddFile(string name, long size, System.DateTime modified, System.IO.FileAttributes fileAttributes)

Adds a new file.

GetPath(string separator)

Returns the path of the entry.

GetPath(string separator, bool omitEmptyNames)

Returns the path of the entry.

Select(string path, string separator)

Selects an entry with the specified path.

ToDirectoryEntryInfo(string pathSeparator)

Returns a DirectoryEntryInfo instance constructed from this DirectoryEntryBuilder.

ToDirectoryEntryInfo(string pathSeparator, string prependPath)

Returns a DirectoryEntryInfo instance constructed from this DirectoryEntryBuilder.

ToDirectoryEntryInfo(string pathSeparator, string prependPath, bool omitEmptyNames)

Returns a DirectoryEntryInfo instance constructed from this DirectoryEntryBuilder.

ToString

Returns a System.String that represents this instance.