Garry's Mod Wiki

string.GetPathFromFilename

string string.GetPathFromFilename( string Inputstring )

Description

Returns the path only from a file's path.

Arguments

1 string Inputstring
String to get path from.

Returns

1 string
Path

Example

Demonstrates the use of string.GetPathFromFilename

MsgN(string.GetPathFromFilename("garrysmod/lua/modules/string.lua"))
Output: "garrysmod/lua/modules/"

Page Links


Special Pages


Wikis

?

Render Time: 76ms

DB GetPage 51
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 11