Logic Machine Forum
Size and modicication timestamp of a file - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Size and modicication timestamp of a file (/showthread.php?tid=2590)



Size and modicication timestamp of a file - SigmaTec - 16.04.2020

Hi,

could you indicate to me how to get theses informations please ?

I tried to use io.exists, but it returns a boolena value (exists or not) only.

Have a good week end.


RE: Size and modicication timestamp of a file - admin - 16.04.2020

Code:
size, mtime = io.stat('path_to_file')