Method FindFolderByPath
FindFolderByPath(string, string)
Finds a folder by its path relative to a root path.
Declaration
IFolder FindFolderByPath(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 folder. |
Returns
| Type | Description |
|---|---|
| IFolder | The found folder or null if not found. |
Examples
// Find folder in root
var folder = eyeServices.FindFolderByPath(".", "Macros");
// Find nested folder
var folder = eyeServices.FindFolderByPath("Macros", "Combat/Flasks");