fixed relative paths

This commit is contained in:
Axel Kittenberger 2010-11-20 18:49:00 +00:00
parent 306d117959
commit ea7a42cf39
2 changed files with 3 additions and 2 deletions

View File

@ -1491,7 +1491,8 @@ local Inotifies = (function()
-- creates a Create event for entry.
if raiseSync then
raiseSync:delay("Create", raiseTime, pd, nil)
local relative = splitPath(pd, syncRoots[raiseSync])
raiseSync:delay("Create", raiseTime, relative)
end
-- adds syncs for subdirs
if isdir and recurse then

View File

@ -17,7 +17,7 @@ local trgdir = tdir.."trg/"
posix.mkdir(srcdir)
posix.mkdir(trgdir)
--local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir,"-log", "all")
local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir,"-log","all")
local pid = spawn("./lsyncd","-nodaemon","-rsync",srcdir,trgdir)
cwriteln("waiting for Lsyncd to startup")
posix.sleep(1)