Changeset 5134

Show
Ignore:
Timestamp:
07/24/09 18:34:40 (4 years ago)
Author:
Cyrus
Message:

FIx lsat commit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/libs/core/luasrc/fs.lua

    r5133 r5134  
    193193-- @return      String containing the error description on error 
    194194-- @return      Number containing the os specific errno on error 
    195 function stat(...) 
    196     local data, code, msg = fs.stat(...) 
     195function stat(path, key) 
     196    local data, code, msg = fs.stat(path) 
    197197    if data then 
    198198        data.mode = data.modestr 
    199199        data.type = stat_tr[data.type] or "?" 
    200200    end 
    201     return data, code, msg 
     201    return key and data and data[key] or data, code, msg 
    202202end 
    203203