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

Identifies the map format from the specified file name.

Namespace: fCraft.MapConversion
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
public static MapFormat Identify(
	string path,
	bool tryFallbackConverters
)

Parameters

path
String
Path to the file or directory to be identified.
tryFallbackConverters
Boolean
Whether or this method should try ALL converters, including ones that do not typically handle files with the given file extension.

Return Value

Map format of the specified file. MapFormat.Unknown, if the format could not be identified.

Exceptions

ExceptionCondition
System..::..ArgumentNullException fileName is null.
System.IO..::..FileNotFoundException The file specified in path was not found.

See Also