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

</div>

Method

# GetTrueFolderItem

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

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `FolderItem.Constructor(f As FolderItem)<folderitem.constructor0>` as a replacement.

</div>

## Description

Returns a `FolderItem</api/files/folderitem>` that refers the true path (without resolving any aliases) of a file or folder.

## Usage

*result*=**GetTrueFolderItem**(*path*\[,*pathMode*\])

| Part     | Type                                | Description                                                                       |
|----------|-------------------------------------|-----------------------------------------------------------------------------------|
| result   | `FolderItem</api/files/folderitem>` | `FolderItem</api/files/folderitem>` that refers to the item referenced by *path*. |
| path     | `String</api/data_types/string>`    | Pathname to the file or folder.                                                   |
| pathMode | Introduced 5.5                      | Class Constant                                                                    |

## Notes

If the item referenced by *path* does not exist, <span class="title-ref">GetTrueFolderItem</span> returns `Nil</api/language/nil>`.

## Sample code

The following example compares <span class="title-ref">GetTrueFolderItem</span> with GetFolderItem. While both functions are passed the same absolute path to an alias, f refers to the alias, while g refers to the actual application.

``` xojo
Dim f, g As FolderItem
f = GetTrueFolderItem("Hard Disk:Photoshop")
g = GetFolderItem("Hard Disk:Photoshop")
TextField1.Text = f.Name ' the alias to the app
TextField2.Text = g.Name ' the application
```

## Compatibility

All project types on all supported operating systems.

## See also

`FolderItem</api/files/folderitem>` class.
