internal static class InternalQuickIOCommon : object
Provides several methods for internal purposes.
DetermineFileSystemEntry(Win32FindData findData)
Determines the type based on the attributes of the handle
internal static QuickIOFileSystemEntryType DetermineFileSystemEntry(Win32FindData findData)
Parameters
findData
Win32FindDataWin32FindData
Returns
QuickIOFileSystemEntryType
DetermineFileSystemEntry(QuickIOPathInfo pathInfo)
Determines the type based on the attributes of the path
internal static QuickIOFileSystemEntryType DetermineFileSystemEntry(QuickIOPathInfo pathInfo)
Parameters
pathInfo
QuickIOPathInfoQuickIOPathInfo
Returns
QuickIOFileSystemEntryType
Exists(String path, QuickIOFileSystemEntryType systemEntryType)
Checks whether the path with the expected system entry type exists
public static Boolean Exists(String path, QuickIOFileSystemEntryType systemEntryType)
Parameters
path
StringPath to a file or a directory
systemEntryType
QuickIOFileSystemEntryTypeQuickIOFileSystemEntryType you are searching for
Exceptions
UnmatchedFileSystemEntryTypeException
Path exists but it's not the type you're searching for.
Exists(QuickIOPathInfo path, QuickIOFileSystemEntryType systemEntryType)
Checks whether the path with the expected system entry type exists
public static Boolean Exists(QuickIOPathInfo path, QuickIOFileSystemEntryType systemEntryType)
Parameters
path
QuickIOPathInfoPath to a file or a directory
systemEntryType
QuickIOFileSystemEntryTypeQuickIOFileSystemEntryType you are searching for
Exceptions
UnmatchedFileSystemEntryTypeException
Path exists but it's not the type you're searching for.
NativeExceptionMapping(String path, Int32 errorCode)
Exception Mapping
public static void NativeExceptionMapping(String path, Int32 errorCode)
Parameters
path
StringerrorCode
Int32errorCode