RealPath

This function returns a formatted file path name.

Syntax

Parameters

Returns

Returns a formatted file path from an unformatted ones. This will replace forward slashes ("\") with backslashes ("/") and remove ".." and "." folder names.

Example

local path = "MyFile.txt"
System:Print((FileSystem:RealPath(path)))