π Quick Start Guide for checking file and folder modification times with LuaDoTheWorld
- β How to get the last modification time of a file or folder
- β How to get the modification time in Unix timestamp format
- LuaDoTheWorld installed and required in your script
local dtw = require("luaDoTheWorld/luaDoTheWorld")
local last = dtw.get_entity_last_modification("tests/target/blob.png")
print(last) -- Example output: "2025-07-24 15:30:12"local dtw = require("luaDoTheWorld/luaDoTheWorld")
local last_in_unix = dtw.get_entity_last_modification_in_unix("tests/target/blob.png")
print(last_in_unix) -- Example output: 1750000000| Function | What it does | Example |
|---|---|---|
dtw.get_entity_last_modification(path) |
Get last modification (readable) | dtw.get_entity_last_modification("file.txt") |
dtw.get_entity_last_modification_in_unix(path) |
Get last modification (Unix) | dtw.get_entity_last_modification_in_unix("file.txt") |
- Works for both files and folders.
- Useful for backups, syncing, or monitoring changes.
- π Check the main SDK documentation
- π Look at other example scripts in the SDK
- π Report issues on our GitHub repository