public class QuickIODirectoryInfo : QuickIOFileSystemEntryBase
Provides properties and instance methods for directories
QuickIODirectoryInfo(QuickIOPathInfo pathInfo)
Create new instance of QuickIODirectoryInfo
public void QuickIODirectoryInfo(QuickIOPathInfo pathInfo)
QuickIODirectoryInfo(QuickIOPathInfo pathInfo, Win32FindData win32FindData)
Creates the folder information on the basis of the path and the handles
internal void QuickIODirectoryInfo(QuickIOPathInfo pathInfo, Win32FindData win32FindData)
Parameters
pathInfo
QuickIOPathInfoQuickIOPathInfo
win32FindData
Win32FindDataWin32FindData
QuickIODirectoryInfo(DirectoryInfo directoryInfo)
Create new instance of QuickIODirectoryInfo
public void QuickIODirectoryInfo(DirectoryInfo directoryInfo)
QuickIODirectoryInfo(String path)
Create new instance of QuickIODirectoryInfo
public void QuickIODirectoryInfo(String path)
QuickIODirectoryInfo(String fullname, Win32FindData win32FindData)
Creates the folder information on the basis of the path and the handles
internal void QuickIODirectoryInfo(String fullname, Win32FindData win32FindData)
Parameters
fullname
StringFull path to the directory
win32FindData
Win32FindDataWin32FindData
AsDirectoryInfo()
Returns a DirectoryInfo of the current path of this folder
public DirectoryInfo AsDirectoryInfo()
Returns
DirectoryInfo
AsDirectoryInfoAsync()
Returns a DirectoryInfo of the current path of this folder
public Task<DirectoryInfo> AsDirectoryInfoAsync()
Returns
DirectoryInfo
EnumerateDirectories(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directories in a specified path.
public IEnumerable<QuickIODirectoryInfo> EnumerateDirectories(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions
Returns
An enumerable collection of the full names (including paths) for the directories in the directory specified by path.
EnumerateDirectoriesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directories in a specified path in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateDirectoriesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions
Returns
An enumerable collection of the full names (including paths) for the directories in the directory specified by path.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateDirectoryPaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directory names.
public IEnumerable<String> EnumerateDirectoryPaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
pathFormatReturn
QuickIOPathTypeType of return
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
Returns
An enumerable collection of the full names (including paths) for the directories in the directory specified by path.
EnumerateDirectoryPathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directory names in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateDirectoryPathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
pathFormatReturn
QuickIOPathTypeType of return
Returns
An enumerable collection of the full names (including paths) for the directories in the directory specified by path.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateFilePaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names in a specified path.
public IEnumerable<String> EnumerateFilePaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
pathFormatReturn
QuickIOPathTypeSpecifies the type of path to return.
enumerateOptions
QuickIOEnumerateOptionsOptions
Returns
An enumerable collection of the full names (including paths) for the files in the directory specified by path.
EnumerateFilePathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names in a specified path in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateFilePathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
pathFormatReturn
QuickIOPathTypeType of return
enumerateOptions
QuickIOEnumerateOptionsOptions
Returns
An enumerable collection of the full names (including paths) for the files in the directory specified by path.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateFiles(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of files in a specified path.
public IEnumerable<QuickIOFileInfo> EnumerateFiles(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
Returns
An enumerable collection of the full names (including paths) for the files in the directory specified by path.
EnumerateFilesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of files in a specified path in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateFilesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
Returns
An enumerable collection of the full names (including paths) for the files in the directory specified by path.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateFileSystemEntries(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories.
public IEnumerable<KeyValuePair<QuickIOFileSystemEntryType, String>> EnumerateFileSystemEntries(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionOne of the enumeration values that specifies whether the search operation should include only the current directory or should include all subdirectories.The default value is TopDirectoryOnly.
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
Returns
An enumerable collection of file-system entries in the directory specified by path and that match the specified search pattern and option.
EnumerateFileSystemEntriesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateFileSystemEntriesAsync(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionOne of the enumeration values that specifies whether the search operation should include only the current directory or should include all subdirectories.The default value is TopDirectoryOnly.
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
Returns
An enumerable collection of file-system entries in the directory specified by path and that match the specified search pattern and option.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateFileSystemEntryPaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories.
public IEnumerable<KeyValuePair<QuickIOFileSystemEntryType, String>> EnumerateFileSystemEntryPaths(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
pathFormatReturn
QuickIOPathTypeType of return
Returns
An enumerable collection of file-system entries in the directory specified by path and that match the specified search pattern and option.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
EnumerateFileSystemEntryPathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names and directory names that match a search pattern in a specified path, and optionally searches subdirectories in a seperate task created by the default TaskScheduler.
public Task<IEnumerable<String>> EnumerateFileSystemEntryPathsAsync(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
pattern
StringSearch pattern. Uses Win32 native filtering.
searchOption
SearchOptionSpecifiy depth with SearchOption
enumerateOptions
QuickIOEnumerateOptionsOptions QuickIOEnumerateOptions
pathFormatReturn
QuickIOPathTypeType of return
Returns
An enumerable collection of file-system entries in the directory specified by path and that match the specified search pattern and option.
Remarks
parallel file system browsing on the same hard disk (HDD/SSD) will decrease performance. Use this only on stripped RAIDs or with network shares.
GetMetadata(QuickIOEnumerateOptions enumerateOptions)
Receives QuickIODirectoryMetadata of current file
public QuickIODirectoryMetadata GetMetadata(QuickIOEnumerateOptions enumerateOptions)
Returns
QuickIODirectoryMetadata
GetMetadataAsync(QuickIOEnumerateOptions enumerateOptions)
Receives QuickIODirectoryMetadata of current file
public Task<QuickIODirectoryMetadata> GetMetadataAsync(QuickIOEnumerateOptions enumerateOptions)
Returns
QuickIODirectoryMetadata
op_Explicit(DirectoryInfo directoryInfo)
Explizit Cast
public static QuickIODirectoryInfo op_Explicit(DirectoryInfo directoryInfo)
Parameters
directoryInfo
DirectoryInfoDirectoryInfo
Returns
QuickIODirectoryInfo
RetriveDateTimeInformation(Win32FindData win32FindData)
Determines the time stamp of the given Win32FindData
private void RetriveDateTimeInformation(Win32FindData win32FindData)
Parameters
win32FindData
Win32FindDataWin32FindData
Exists
Returns true if directory exists. Result starts a file system call and is not cached.
public override Boolean Exists { get; }
Exceptions
UnmatchedFileSystemEntryTypeException
Path exists but it's a file..
ExistsAsync
Returns true if directory exists. Result starts a file system call and is not cached.
public override Task<Boolean> ExistsAsync { get; }
Exceptions
UnmatchedFileSystemEntryTypeException
Path exists but it's a file..
IsRoot
Returns true if current path is root
public Boolean IsRoot { get; }