[This is preliminary documentation and is subject to change.]

Checks whether the file exists in a specified way (case-sensitive or case-insensitive).

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)

Syntax

   
 C# 
public static bool Exists(
	this FileInfo fileInfo,
	bool caseSensitive
)

Parameters

fileInfo
FileInfo
FileInfo object in question.
caseSensitive
Boolean
Whether check should be case-sensitive or case-insensitive.

Return Value

true if file exists, otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileInfo. When you use instance method syntax to call this method, omit the first parameter.

See Also