summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-convert.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-08-08 23:45:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-08-08 23:45:00 +0200
commit994ef322c591f7cae9b672844e96482723b89b4b (patch)
treee7951df9c461e844045680dc7d8baf2c1a9b19c7 /scripts/context/lua/mtx-convert.lua
parent83efdae0bed9228d31513e0555e3229250089f14 (diff)
downloadcontext-994ef322c591f7cae9b672844e96482723b89b4b.tar.gz
beta 2012.08.08 23:45
Diffstat (limited to 'scripts/context/lua/mtx-convert.lua')
-rw-r--r--scripts/context/lua/mtx-convert.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-convert.lua b/scripts/context/lua/mtx-convert.lua
index b4e6e010b..04ff38aad 100644
--- a/scripts/context/lua/mtx-convert.lua
+++ b/scripts/context/lua/mtx-convert.lua
@@ -83,7 +83,7 @@ function converters.convertpath(inputpath,outputpath)
inputpath = inputpath or "."
outputpath = outputpath or "."
for name in lfs.dir(inputpath) do
- local suffix = file.extname(name)
+ local suffix = file.suffix(name)
if find(name,"%.$") then
-- skip . and ..
elseif converters[suffix] then
@@ -102,7 +102,7 @@ function converters.convertpath(inputpath,outputpath)
end
function converters.convertfile(oldname)
- local suffix = file.extname(oldname)
+ local suffix = file.suffix(oldname)
if converters[suffix] then
local newname = file.replacesuffix(oldname,"pdf")
if oldname == newname then