Garry's Mod Wiki

file.Size

file.Size

file.Size( string fileName, string gamePath )

Description

Returns the file's size in bytes. If the file is not found, returns -1.

Arguments

1 string fileName
The file's name.
2 string gamePath
The path to look for the files and directories in. See this list for a list of valid paths.

Example

Prints the size of helloworld.txt.

print( file.Size("helloworld.txt", "DATA") )
Output: 8

Special Pages


Wikis

?

Render Time: 55ms

DB GetPage 38
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 6