Methods (23) Properties (3)
Namespace: SchwabenCode.QuickIO

Syntax

public class QuickIODirectoryInfo : QuickIOFileSystemEntryBase

Basetype

Summary

Provides properties and instance methods for directories

Uses

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(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

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

AsDirectoryInfoAsync()

Returns a DirectoryInfo of the current path of this folder

public Task<DirectoryInfo> AsDirectoryInfoAsync()

Returns

DirectoryInfo

public IEnumerable<QuickIODirectoryInfo> EnumerateDirectories(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)

Parameters

pattern

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)

Parameters

pattern

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(String pattern, SearchOption searchOption, QuickIOPathType pathFormatReturn, QuickIOEnumerateOptions enumerateOptions)

Parameters

pattern

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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.

public IEnumerable<QuickIOFileInfo> EnumerateFiles(String pattern, SearchOption searchOption, QuickIOEnumerateOptions enumerateOptions)

Parameters

pattern

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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(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

String

Search pattern. Uses Win32 native filtering.

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

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

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

Classdiagram

public classQuickIODirectoryInfoAsDirectoryInfoAsDirectoryInfoAsyncEnumerateDirectoriesEnumerateDirectoriesAsyncEnumerateDirectoryPathsEnumerateDirectoryPathsAsyncEnumerateFilePathsEnumerateFilePathsAsyncEnumerateFilesEnumerateFilesAsyncEnumerateFileSystemEntriesEnumerateFileSystemEntriesAsyncEnumerateFileSystemEntryPathsEnumerateFileSystemEntryPathsAsyncGetMetadataGetMetadataAsyncop_ExplicitRetriveDateTimeInformationQuickIODirectoryInfoQuickIODirectoryInfoQuickIODirectoryInfoQuickIODirectoryInfoQuickIODirectoryInfoExists { get; }ExistsAsync { get; }IsRoot { get; }public abstract classQuickIOFileSystemEntryBase_creationTimeUtc_lastAccessTimeUtc_lastWriteTimeUtcGetFileSystemSecurityGetOwnerGetOwnerIdentifierSafeExistsSafeExistsAsyncSetOwnerSetOwnerToStringQuickIOFileSystemEntryBaseAttributes { get; set; }CreationTime { get; }CreationTimeUtc { get; set; }Exists { get; }ExistsAsync { get; }FindData { get; set; }FullName { get; }FullNameUnc { get; }IsReadOnly { get; set; }IsReadOnlyAsync { get; set; }LastAccessTime { get; }LastAccessTimeUtc { get; set; }LastWriteTime { get; }LastWriteTimeUtc { get; set; }Name { get; }Parent { get; }ParentFullName { get; }PathInfo { get; set; }PathLocation { get; }PathType { get; }Root { get; }RootFullName { get; }public static classQuickIODirectoryAddAttributeAddAttributeAddAttributeAddAttributeAsyncAddAttributeAsyncAddAttributeAsyncCompressCompressCompressAsyncCompressAsyncCopyCopyCopyAsyncCopyAsyncCreateCreateCreateAsyncCreateAsyncDeleteDeleteDeleteAsyncDeleteAsyncEnumerateDirectoriesEnumerateDirectoriesEnumerateDirectoriesEnumerateDirectoriesAsyncEnumerateDirectoriesAsyncEnumerateDirectoriesAsyncEnumerateDirectoryPathsEnumerateDirectoryPathsEnumerateDirectoryPathsEnumerateDirectoryPathsAsyncEnumerateDirectoryPathsAsyncEnumerateDirectoryPathsAsyncEnumerateFilePathsEnumerateFilePathsEnumerateFilePathsEnumerateFilePathsAsyncEnumerateFilePathsAsyncEnumerateFilePathsAsyncEnumerateFilesEnumerateFilesEnumerateFilesEnumerateFilesAsyncEnumerateFilesAsyncEnumerateFilesAsyncEnumerateFileSystemEntriesEnumerateFileSystemEntriesEnumerateFileSystemEntriesEnumerateFileSystemEntriesAsyncEnumerateFileSystemEntriesAsyncEnumerateFileSystemEntriesAsyncEnumerateFileSystemEntryPathsEnumerateFileSystemEntryPathsEnumerateFileSystemEntryPathsEnumerateFileSystemEntryPathsAsyncEnumerateFileSystemEntryPathsAsyncEnumerateFileSystemEntryPathsAsyncExistsExistsExistsExistsAsyncExistsAsyncExistsAsyncGetAttributesGetAttributesGetAttributesGetAttributesAsyncGetAttributesAsyncGetAttributesAsyncGetCreationTimeGetCreationTimeGetCreationTimeGetCreationTimeAsyncGetCreationTimeAsyncGetCreationTimeAsyncGetCreationTimeUtcGetCreationTimeUtcGetCreationTimeUtcGetCreationTimeUtcAsyncGetCreationTimeUtcAsyncGetCreationTimeUtcAsyncGetDirectoryRootGetDirectoryRootGetDirectoryRootGetDirectoryRootAsyncGetDirectoryRootAsyncGetDirectoryRootAsyncGetLastAccessTimeGetLastAccessTimeGetLastAccessTimeGetLastAccessTimeAsyncGetLastAccessTimeAsyncGetLastAccessTimeAsyncGetLastAccessTimeUtcGetLastAccessTimeUtcGetLastAccessTimeUtcGetLastAccessTimeUtcAsyncGetLastAccessTimeUtcAsyncGetLastAccessTimeUtcAsyncGetLastWriteTimeGetLastWriteTimeGetLastWriteTimeGetLastWriteTimeAsyncGetLastWriteTimeAsyncGetLastWriteTimeAsyncGetLastWriteTimeUtcGetLastWriteTimeUtcGetLastWriteTimeUtcGetLastWriteTimeUtcAsyncGetLastWriteTimeUtcAsyncGetLastWriteTimeUtcAsyncGetMetadastaAsyncGetMetadataGetMetadataGetMetadataGetMetadataAsyncGetMetadataAsyncGetMetadataAsyncGetStatisticsGetStatisticsGetStatisticsGetStatisticsAsyncGetStatisticsAsyncGetStatisticsAsyncInternalDirectoryExistsMoveMoveAsyncRemoveAttributeRemoveAttributeRemoveAttributeRemoveAttributeAsyncRemoveAttributeAsyncRemoveAttributeAsyncSetAllFileTimesSetAllFileTimesSetAllFileTimesSetAllFileTimesAsyncSetAllFileTimesAsyncSetAllFileTimesAsyncSetAllFileTimesUtcSetAllFileTimesUtcSetAllFileTimesUtcSetAllFileTimesUtcAsyncSetAllFileTimesUtcAsyncSetAllFileTimesUtcAsyncSetAttributesSetAttributesSetAttributesSetAttributesAsyncSetAttributesAsyncSetAttributesAsyncSetCreationTimeSetCreationTimeSetCreationTimeSetCreationTimeAsyncSetCreationTimeAsyncSetCreationTimeAsyncSetCreationTimeUtcSetCreationTimeUtcSetCreationTimeUtcSetCreationTimeUtcAsyncSetCreationTimeUtcAsyncSetCreationTimeUtcAsyncSetLastAccessTimeSetLastAccessTimeSetLastAccessTimeSetLastAccessTimeAsyncSetLastAccessTimeAsyncSetLastAccessTimeAsyncSetLastAccessTimeUtcSetLastAccessTimeUtcSetLastAccessTimeUtcSetLastAccessTimeUtcAsyncSetLastAccessTimeUtcAsyncSetLastAccessTimeUtcAsyncSetLastWriteTimeSetLastWriteTimeSetLastWriteTimeSetLastWriteTimeAsyncSetLastWriteTimeAsyncSetLastWriteTimeAsyncSetLastWriteTimeUtcSetLastWriteTimeUtcSetLastWriteTimeUtcSetLastWriteTimeUtcAsyncSetLastWriteTimeUtcAsyncSetLastWriteTimeUtcAsync

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom