lovr.filesystem.getLastModified

Edit

Returns when a file was last modified, since some arbitrary time in the past.

time, error = lovr.filesystem.getLastModified(path)

Arguments

NameTypeDescription
pathstring The file to check.

Returns

NameTypeDescription
timenumber | nil The modification time of the file, in seconds, or nil if there was an error.
errorstring | nil The error message, if there was an error.

See also