File module

get_absolute_path

procedure · 1 overloadSource

The absolute form of relative_path, in a new string from context.allocator that the caller frees, and whether it worked.

get_absolute_path :: (relative_path: string) -> (string, success: bool)

The path need not exist and links are not followed; . and .. are resolved textually. The result uses / as separator, as on other targets, so it can go into a string literal or a #load.

Parameters

relative_path: string

Returns

string
success: bool

See also