Click or drag to resize
Ab4d.SharpEngine logo

FileUtilsCommonFileNotFoundResolver Method

CommonFileNotFoundResolver tries to resolve the filePath by first trying to fix directory separator and then when the filePath is not rooted, combining the filePath with the base application's path. The method also checks if the file exist in any of the GlobalFileSearchPaths. When the resolve succeeds (the file is found) then the value of filePath is updated and true is returned. When the method cannot help find the file, false is returned.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static bool CommonFileNotFoundResolver(
	ref string filePath
)

Parameters

filePath  String
path and name to the file that does not exist (the filePath is updated when file is resolved)

Return Value

Boolean
true when filePath was resoled (filePath is set to the file that exists); false when file is not found
See Also