longFilePath

returns the long-format equivalent of an 8.3-format file path.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1 Security: disk

# Syntax

the longFilePath of filePath

# Params

- filePath : The filePath is the location and name of the file or folder whose long equivalent you want. If you specify a name but not a location, LiveCode assumes the file or folder is in the defaultFolder.

# Examples

the longFilePath of it

if storedPath is not the longFilePath of storedFile then checkVersion

# Description

Use the longFilePath function to get the long equivalent of a short file path passed from the command line.

The longFilePath function transforms the filePath without looking for the file, so it returns a value even if the filePath does not exist- namely the filePath prefixed with the current defaultFolder.

>*Warning:* In pre 7.x versions on Mac and Linux the longFilePath function returned the filePath without changing it, post 7.x the longFilePath function returns the full path to the file. This change may affect existing code.

# Tags

# See

- **property:** defaultFolder - **function:** shortFilePath - **glossary:** file path, return