This commit is contained in:
Axel Kittenberger 2010-10-23 10:58:43 +00:00
parent 2bb0225f4e
commit 7e32b9b298
1 changed files with 5 additions and 3 deletions

View File

@ -98,6 +98,7 @@ local event_names = {
-----
-- TODO
--
local function delay_action(atype, wd, sync, filename, time)
print("delay_action "..event_names[atype].."("..wd..") ")
local origin = sync.origin
@ -252,10 +253,11 @@ function lsyncd_event(etype, wd, isdir, filename, filename2)
for i, sync in ipairs(w.syncs) do
time = nil -- TODO
delay_action(etype, wd, sync, filename, time)
-- add subdirs for new directories
if isdir and eypte == CREATE then
attend_dir(sync.origin, sync.path..filename.."/", w)
if isdir then
if etype == CREATE then
attend_dir(sync.origin, sync.path..filename.."/", w)
end
end
end
end