fstat¶
fstat(path)
Checks the existence of file or directory. If not exist, return nil. If exist, return the object information.
Parameters¶
| Name | Req | Type | Description |
|---|---|---|---|
path | yes | string | path to the object |
Returns¶
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | table | object info, table elements: | ||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
Availability¶
- Since:
2.5.0 - Radio support:
all
Source¶
radio/src/lua/api_filesystem.cpp