lovr.filesystem.getLastModified

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

time = lovr.filesystem.getLastModified(path)

Arguments

NameTypeDescription
pathstringThe file to check.

Returns

NameTypeDescription
timenumberThe modification time of the file, in seconds, or nil if it's unknown.

See also