Garry's Mod Wiki

string.GetFileFromFilename

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

Special Pages


Wikis

?

Render Time: 54ms

DB GetPage 35
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 8