Changeset 5134
- Timestamp:
- 07/24/09 18:34:40 (4 years ago)
- Files:
-
- 1 modified
-
luci/trunk/libs/core/luasrc/fs.lua (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/libs/core/luasrc/fs.lua
r5133 r5134 193 193 -- @return String containing the error description on error 194 194 -- @return Number containing the os specific errno on error 195 function stat( ...)196 local data, code, msg = fs.stat( ...)195 function stat(path, key) 196 local data, code, msg = fs.stat(path) 197 197 if data then 198 198 data.mode = data.modestr 199 199 data.type = stat_tr[data.type] or "?" 200 200 end 201 return data, code, msg201 return key and data and data[key] or data, code, msg 202 202 end 203 203
