util.RelativePathToFull

From GMod Wiki

Jump to: navigation, search
Function
Syntax util.RelativePathToFull( String path )
Where is this used?
Description:
Finds the full path from the given relative path.
Returns: String
Part of Library: Util
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.RelativePathToFull]Util.RelativePathToFull [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the full path to a file.
Used onNewerShared.png
Code
util.RelativePathToFull("gameinfo.txt");
Outputc:\program files\steam\steamapps\username\garrysmod\garrysmod\gameinfo.txt
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox