Table of Contents

Interface IDirectoryReference

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

Interface representing reference to a single directory.

public interface IDirectoryReference
Extension Methods

Properties

Exists

Gets whether the directory exists or not.

bool Exists { get; }

Property Value

bool

Name

Gets the path name of the current directory.

string Name { get; }

Property Value

string

Methods

Create()

Create the directory path.

void Create()

EnumerateDirectoryNames()

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

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.

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.