LUA: check if file is a directory
Posted
by PeterMmm
on Stack Overflow
See other posts from Stack Overflow
or by PeterMmm
Published on 2010-05-14T11:16:34Z
Indexed on
2010/05/14
11:24 UTC
Read the original article
Hit count: 225
lua
If i have this code
local f = io.open("../web/", "r")
print(io.type(f))
-- output: file
how can i know f points to a directory ?
© Stack Overflow or respective owner