Lua
C++
Edit

RealPath

This function fixes a file path by adding the complete directory path and replacing backslashes with forward slashes. The file path does not have to specify an existing file.

Syntax

Parameter Description
path file path to correct

Returns

Returns the corrected file path.

Example

local path = "..\\./temp.txt";
Print(RealPath(path));
Copyright © 2024 Ultra Software.
All rights reserved.