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
stringName of the directory.
Properties
Exists
Gets whether the directory exists or not.
public bool Exists { get; }
Property Value
Name
Path name of the current directory.
public string Name { get; }
Property Value
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
stringFile 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.