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. |