Table of Contents

Class DirectoryReference

Namespace
FellowOakDicom.IO
Assembly
fo-dicom.core.dll

Implementation of the IDirectoryReference interface.

public class DirectoryReference : IDirectoryReference
Inheritance
DirectoryReference
Implements
Inherited Members
Extension Methods

Constructors

DirectoryReference(string)

Initializes a DirectoryReference object.

public DirectoryReference(string directoryName)

Parameters

directoryName string

Name of the directory.

Properties

Exists

Gets whether the directory exists or not.

public bool Exists { get; }

Property Value

bool

Name

Path name of the current directory.

public string Name { get; }

Property Value

string

Methods

Create()

Create the directory path.

public void Create()

EnumerateDirectoryNames()

Gets the names of the sub-directories in the current directory.

public IEnumerable<string> EnumerateDirectoryNames()

Returns

IEnumerable<string>

Names of the sub-directories in the current directory.

EnumerateFileNames(string)

Gets the file names of the files in the current directory.

public IEnumerable<string> EnumerateFileNames(string searchPattern = null)

Parameters

searchPattern string

File search pattern; if null or empty all files in the directory should be returned.

Returns

IEnumerable<string>

File names of the files in the current directory.