ResolveFilePath(String) Method

Definition

Namespace CliInvoke
Assembly CliInvoke.dll

Resolves a file path by checking if the file path exists or if it's a directory.

[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public FileInfo ResolveFilePath(string filePathToResolve)

Parameters

filePathToResolve
String

The file path to resolve.

Returns

FileInfo
The resolved file path if successful, otherwise throws a FileNotFoundException.