<div class="meta" robots="noindex">

</div>

Method

# FolderItem.TrueChild

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `FolderItem.Child<folderitem.child>` as a replacement.

</div>

## Description

If *PathName* is a directory, <span class="title-ref">TrueChild</span> returns a **FolderItem** object for the directory with the name passed. <span class="title-ref">TrueChild</span> returns the actual **FolderItem**, even if it is an alias.

## Sample code

This example gets the actual FolderItem of the passed item.

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