Garry's Mod Wiki

string.GetExtensionFromFilename

Description

Returns extension of the file.

Arguments

1 string file
String eg. file-path to get the file extensions from.

Returns

1 string
fileExtension

Example

Prints the extension of the file.

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

Page Links


Special Pages


Wikis

?

Render Time: 38ms

DB GetPage 4
Generate Html 10
SaveChanges 11
Render Body 0
Render Sidebar 10