Interface IDirectoryReference
Interface representing reference to a single directory.
Namespace: FellowOakDicom.IO
Assembly: fo-dicom.core.dll
Syntax
public interface IDirectoryReference
Properties
Exists
Gets whether the directory exists or not.
Declaration
bool Exists { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
Gets the path name of the current directory.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Create()
Create the directory path.
Declaration
void Create()
EnumerateDirectoryNames()
Gets the names of the sub-directories in the current directory.
Declaration
IEnumerable<string> EnumerateDirectoryNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | Names of the sub-directories in the current directory. |
EnumerateFileNames(String)
Gets the file names of the files in the current directory.
Declaration
IEnumerable<string> EnumerateFileNames(string searchPattern = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | searchPattern | File search pattern; if null or empty all files in the directory should be returned. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | File names of the files in the current directory. |