Checks the existence of file or directory.
If not exist, return nil.
If exist, return the object information.
@status current Introduced in 2.5.0
Parameters
path
(string) path to the object
Return value
table
object info, table elements:size
(number) file sizeattrib
(number) file attribute flagstime
(table) table with last time modified date and times, table elements:year
(number) yearmon
(number) monthday
(number) day of monthhour
(number) hourshour12
(number) hours in US formatmin
(number) minutessec
(number) secondssuffix
(text) am or pm
info = fstat("radio")
if info ~= nil then
if (info.attrib == AM_DIR) then
print("is a directory")
end
size = info.size
time = info.time
end