summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-01-23 15:40:18 +0200
committerMarius <mariausol@gmail.com>2013-01-23 15:40:18 +0200
commit2621e54b0510df700d50bfca4b1606ae6a2a569e (patch)
tree09e119320ecdd017d207319e8ecc96ed7338ae33 /scripts
parent8114597629901975313c670cf46e374e8052cd52 (diff)
downloadcontext-2621e54b0510df700d50bfca4b1606ae6a2a569e.tar.gz
beta 2013.01.23 14:04
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-tools.lua b/scripts/context/lua/mtx-tools.lua
index c1aaf9e5d..22a83e603 100644
--- a/scripts/context/lua/mtx-tools.lua
+++ b/scripts/context/lua/mtx-tools.lua
@@ -124,7 +124,7 @@ function scripts.tools.dirtoxml()
if mode == "file" then
result[#result+1] = format("%s<file name='%s'>",d,(longname and path and join(path,name)) or name)
result[#result+1] = format("%s <base>%s</base>",d,removesuffix(name))
- result[#result+1] = format("%s <type>%s</type>",d,extname(name))
+ result[#result+1] = format("%s <type>%s</type>",d,suffixonly(name))
result[#result+1] = format("%s <size>%s</size>",d,attr.size)
result[#result+1] = format("%s <permissions>%s</permissions>",d,sub(attr.permissions,7,9))
result[#result+1] = format("%s <date>%s</date>",d,date(timestamp,attr.modification))