Method

FolderItem.TrueChild


Warning

This item was deprecated in version 2019r2. Please use FolderItem.Child as a replacement.

Description

If PathName is a directory, TrueChild returns a FolderItem object for the directory with the name passed. TrueChild returns the actual FolderItem, even if it is an alias.

Sample code

This example gets the actual FolderItem of the passed item.

Dim path As String
Dim f, g As FolderItem
f = New FolderItem
g = f.GetRelative(f.GetSaveInfo(Volume(0).TrueChild("Documents"), 0))
If g <> Nil Then
  path = g.NativePath
End If

Compatibility

All project types on all supported operating systems.