aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-11-09 20:32:33 +0100
committerKim Alvefur <zash@zash.se>2014-11-09 20:32:33 +0100
commit639527b16590d9032d4340c5e6570909c6cdc776 (patch)
tree00a4652d294babdf3be6f9add9a811a0e180a5d8 /util
parentcebfb0bf3e29df5aac96cb0d41adb8e356921dc8 (diff)
parent61b8eb49edf8e9a2d1ae2d55a898fc6e69a6f59e (diff)
downloadprosody-639527b16590d9032d4340c5e6570909c6cdc776.tar.gz
prosody-639527b16590d9032d4340c5e6570909c6cdc776.zip
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r--util/paths.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/paths.lua b/util/paths.lua
index 3e5744df..89f4cad9 100644
--- a/util/paths.lua
+++ b/util/paths.lua
@@ -1,3 +1,5 @@
+local t_concat = table.concat;
+
local path_sep = package.config:sub(1,1);
local path_util = {}
@@ -35,4 +37,8 @@ function path_util.glob_to_pattern(glob)
end).."$";
end
+function path_util.join(...)
+ return t_concat({...}, path_sep);
+end
+
return path_util;