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(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
EnumerateDirectories(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directories in a specified path.
public IEnumerable<QuickIODirectoryInfo> EnumerateDirectories(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of directory names.
public IEnumerable<String> EnumerateDirectoryPaths(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of file names in a specified path.
public IEnumerable<String> EnumerateFilePaths(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Returns an enumerable collection of files in a specified path.
public IEnumerable<QuickIOFileInfo> EnumerateFiles(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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(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(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)
Parameters
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 using seperate task
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..
IsRoot
Returns true if current path is root
public Boolean IsRoot { get; }