-
Notifications
You must be signed in to change notification settings - Fork 2
file.info
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get a map of info (path, isDirectory, size, date) about the given path
| Parameter | Default Value | Note |
|---|---|---|
| path |
| Condition | Return Value |
|---|---|
| (always) | number |
import "file"
info = file.info("data.txt")
print info.size // file size in bytes
print info.isDirectory // 0 for files, 1 for directories