Method GetFolderByPath
GetFolderByPath(string)
Gets a folder by its path. Throws an exception if not found.
Declaration
IFolderAccessor GetFolderByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the folder, either absolute or relative. |
Returns
Type | Description |
---|---|
IFolderAccessor | The folder at the specified path. |
Examples
try
{
var folder = AuraTree.GetFolderByPath("MyProject/Folders/Folder1");
Log.Info("Folder found!");
}
catch (NotFoundException)
{
Log.Info("Folder not found.");
}