Class FolderPathNode
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
Node in a folder path response. Contains recursive folders leading to the target folder.
public class FolderPathNode : PathNode
- Inheritance
-
FolderPathNode
- Inherited Members
Properties
Folders
The list of nested folder nodes on the path from this node to the target folder; may be null.
public IList<FolderPathNode>? Folders { get; set; }
Property Value
Methods
GetLeafFolder()
Walks down through nested folders until reaching the deepest (target) folder node, then returns it.
public FolderPathNode GetLeafFolder()
Returns
- FolderPathNode
The deepest FolderPathNode in the chain, which represents the target folder.
GetLeafFolderPath()
Returns a /-separated path of folder names from this node down to the target folder.
public string GetLeafFolderPath()
Returns
- string
A string such as
"/Workspace/FolderA/FolderB/Target".
Examples
Workspace → FolderA → FolderB → Target returns "/Workspace/FolderA/FolderB/Target".
Workspace → Target (no intermediate folders) returns "/Workspace/Target".