string.GetPathFromFilename
From GMod Wiki
Function | |
Syntax |
string.GetPathFromFilename( String file ) Where is this used? |
Description: | |
Returns the path of a File from its Filename. | |
Returns: | String Filepath |
Part of Library: | String |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.GetPathFromFilename]String.GetPathFromFilename [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Will output the path of a File. |
---|---|
Used on | |
Code | Msg(string.GetPathFromFilename("wukka/ubercoolfolder/myfile.txt")) |
Output | Will output "wukka/ubercoolfolder/" in console. |