Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > os.stat


os.stat

The os.stat function retrieves information about a file.

#!lua
info = os.stat("path")

Added in Premake 4.4.

Parameters

path is the filesystem path to file for which to retrieve information.

Return Value

A table of values:

mtime Last modified timestamp
size The file size in bytes

Clone this wiki locally