mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-10 15:20:58 +00:00
fixed relative paths
This commit is contained in:
parent
306d117959
commit
ea7a42cf39
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user