mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
Make ejabberd2prosody.lua a little more cross-platform :)
This commit is contained in:
parent
354c65daa0
commit
f5830f6ada
1 changed files with 178 additions and 175 deletions
|
@ -12,7 +12,10 @@ dm.set_data_path(data_path);
|
|||
|
||||
local _mkdir = {}
|
||||
function mkdir(path)
|
||||
if os.getenv("WINDIR") then
|
||||
-- I'm afraid it's true :(
|
||||
path = path:gsub("/", "\\");
|
||||
end
|
||||
--print("mkdir",path);
|
||||
local x = io.popen("mkdir "..path.." 2>&1"):read("*a");
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue