Method FindByPath
FindByPath(string, string)
Finds an item in the aura tree by its path relative to a root path.
Declaration
IEyeItem FindByPath(string rootPath, string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rootPath | The base directory path to start the search from. |
| string | path | The relative path to the target item. |
Returns
| Type | Description |
|---|---|
| IEyeItem | The found item or null if not found. |
Examples
// Find item in "Macros/Combat" folder
var item = eyeServices.FindByPath("Macros", "Combat/AutoFlask");
// Find item using absolute path
var item = eyeServices.FindByPath(".", "Macros/Combat/AutoFlask");