Methods (21) Properties (2)
Namespace: SchwabenCode.QuickIO

Syntax

public class QuickIODirectoryInfo : QuickIOFileSystemEntryBase

Basetype

Summary

Provides properties and instance methods for directories

Methods

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

QuickIOPathInfo

QuickIOPathInfo

win32FindData

Win32FindData

Win32FindData

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

String

Full path to the directory

win32FindData

Win32FindData

Win32FindData

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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options

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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options

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.

public IEnumerable<String> EnumerateDirectoryPaths(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)

Parameters

searchOption

SearchOption

Specifiy depth with SearchOption

pathFormatReturn

QuickIOPathType

Type of return

enumerateOptions

QuickIOEnumerateOptions

Options 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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options QuickIOEnumerateOptions

pathFormatReturn

QuickIOPathType

Type 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.

public IEnumerable<String> EnumerateFilePaths(SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)

Parameters

searchOption

SearchOption

Specifiy depth with SearchOption

pathFormatReturn

QuickIOPathType

Specifies the type of path to return.

enumerateOptions

QuickIOEnumerateOptions

Options

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

SearchOption

Specifiy depth with SearchOption

pathFormatReturn

QuickIOPathType

Type of return

enumerateOptions

QuickIOEnumerateOptions

Options

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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options 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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options 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

SearchOption

One 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

QuickIOEnumerateOptions

Options 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

SearchOption

One 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

QuickIOEnumerateOptions

Options 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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options QuickIOEnumerateOptions

pathFormatReturn

QuickIOPathType

Type 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

SearchOption

Specifiy depth with SearchOption

enumerateOptions

QuickIOEnumerateOptions

Options QuickIOEnumerateOptions

pathFormatReturn

QuickIOPathType

Type 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

public static QuickIODirectoryInfo op_Explicit(DirectoryInfo directoryInfo)

Parameters

directoryInfo

DirectoryInfo

DirectoryInfo

Returns

QuickIODirectoryInfo

RetriveDateTimeInformation(Win32FindData win32FindData)

Determines the time stamp of the given Win32FindData

private void RetriveDateTimeInformation(Win32FindData win32FindData)

Parameters

win32FindData

Win32FindData

Win32FindData

Properties

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; }