From 30b216f774c2404a965807ddb93a4a4b2aaeac04 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 21 Jun 2009 13:42:26 +0000 Subject: Drop support for luaposix and bitlib (obsoleted by nixio) Mark luci.fs as deprecated --- libs/uvl/luasrc/uvl/datatypes.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libs/uvl') diff --git a/libs/uvl/luasrc/uvl/datatypes.lua b/libs/uvl/luasrc/uvl/datatypes.lua index 615e2946d4..1ad0891f2d 100644 --- a/libs/uvl/luasrc/uvl/datatypes.lua +++ b/libs/uvl/luasrc/uvl/datatypes.lua @@ -144,9 +144,9 @@ function directory( val, seen ) if s and not seen[s.ino] then seen[s.ino] = true - if s.type == "directory" then + if s.type == "dir" then return true - elseif s.type == "link" then + elseif s.type == "lnk" then return directory( fs.readlink(val), seen ) end end @@ -160,9 +160,9 @@ function file( val, seen ) if s and not seen[s.ino] then seen[s.ino] = true - if s.type == "regular" then + if s.type == "reg" then return true - elseif s.type == "link" then + elseif s.type == "lnk" then return file( fs.readlink(val), seen ) end end @@ -176,9 +176,9 @@ function device( val, seen ) if s and not seen[s.ino] then seen[s.ino] = true - if s.type == "character device" or s.type == "block device" then + if s.type == "chr" or s.type == "blk" then return true - elseif s.type == "link" then + elseif s.type == "lnk" then return device( fs.readlink(val), seen ) end end -- cgit v1.2.3