int32 FDepth(path);
Computes the depth, or number of component names, of a path.
Name | Type | Description |
---|---|---|
path | Path | Path whose depth you want to determine. |
int32, indicating the depth of the path, which can contain the following values.
Value | Description |
---|---|
ā1 | Badly formed path. |
0 | Path is the root directory. |
1 | Path is in the root directory. |
2 | Path is in a subdirectory of the root directory, one level from the root directory. |
nā1 | Path is nā2 levels from the root directory. |
N | Path is nā1 levels from the root directory. |
Submit feedback on this topic.
Visit ni.com/support for technical support.