string.GetPathFromFilename

From GMod Wiki

Revision as of 00:45, 18 September 2010 by Spacetech (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.GetPathFromFilename]String.GetPathFromFilename [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionWill output the path of a File.
Used onNewerShared.png
Code
Msg(string.GetPathFromFilename("wukka/ubercoolfolder/myfile.txt"))
OutputWill output "wukka/ubercoolfolder/" in console.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox