Skip to content

file.info

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get a map of info (path, isDirectory, size, date) about the given path

Parameters

Parameter Default Value Note
path

Return value

Condition Return Value
(always) number

Notes

Example

import "file"
info = file.info("data.txt")
print info.size        // file size in bytes
print info.isDirectory // 0 for files, 1 for directories

Clone this wiki locally