std.filesystem.RealPath - nitrologic/monkey2 GitHub Wiki

std::std.filesystem.RealPath

Function RealPath:monkey:monkey.types.String( path:monkey:monkey.types.String )

Converts a path to a real path.

If path is a relative path, it is first converted into an absolute path by prefixing the current directory.

Then, any internal './' or '../' references in the path are collapsed.

Parameters
path path The filesystem path.