webmcp

diff framework/bin/langtool.lua @ 65:a54cc7dcabf1

"extos" library calls via "extos." instead of "os."
author jbe
date Tue Apr 17 15:20:42 2012 +0200 (2012-04-17)
parents 3d43a5cf17c1
children 92d9218140f7
line diff
     1.1 --- a/framework/bin/langtool.lua	Sun Apr 15 16:04:33 2012 +0200
     1.2 +++ b/framework/bin/langtool.lua	Tue Apr 17 15:20:42 2012 +0200
     1.3 @@ -64,7 +64,7 @@
     1.4    end
     1.5  end
     1.6  
     1.7 -if #directories > 0 and not os.listdir then
     1.8 +if #directories > 0 and not extos.listdir then
     1.9    io.stderr:write('Fatal: Cannot traverse directories without "extos" library -> Abort\n')
    1.10    os.exit(1)
    1.11  end
    1.12 @@ -81,7 +81,7 @@
    1.13  local translations = { }
    1.14  
    1.15  local function traverse(path)
    1.16 -  local filenames = os.listdir(path)
    1.17 +  local filenames = extos.listdir(path)
    1.18    if not filenames then return false end
    1.19    for num, filename in ipairs(filenames) do
    1.20      if not string.find(filename, "^%.") then

Impressum / About Us