RealPath
This function returns a formatted file path name.
Syntax
- string RealPath(string path)
Parameters
- path: the name of the path to process.
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)))