Garry's Mod Wiki

string.GetFileFromFilename

string string.GetFileFromFilename( string pathString )

Description

Returns file name and extension.

Arguments

1 string pathString
The string eg. file-path to get the file-name from.

Returns

1 string
The file name

Example

Returns the file name.

print( string.GetFileFromFilename( "garrysmod/lua/modules/string.lua" ) )
Output: string.lua

Page Links


Special Pages


Wikis

?

Render Time: 171ms

DB GetPage 44
Generate Html 4
SaveChanges (1) 20
Render Body 0
Render Sidebar 34