diff --git a/ChangeLog b/ChangeLog index fe3b8f9..f1149bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ even when another part of the tree made an IO-error. fix: default.direct now not using -p for mkdir since if the dir is not there it should fail fix: default.direct now not using -t for cp since OSX binutils doesn't understand it + fix: default.rsync might have missed some files on OSX fsevents when moving directories change: complain if any "rsyncOps" is given change: splitted the default configurations in their own files. more cleanly seperated from the Lsyncd runner, and highlights it are just diff --git a/default-rsync.lua b/default-rsync.lua index 5ff45d4..98eea27 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -45,7 +45,9 @@ default.rsync = { local paths = elist.getPaths( function(etype, path1, path2) - if etype == 'Delete' and string.byte(path1, -1) == 47 then + if string.byte(path1, -1) == 47 and + (etype == 'Delete' or etype == 'Create') + then return sub(path1)..'***', sub(path2) else return sub(path1), sub(path2) diff --git a/tests/churn-rsync.lua b/tests/churn-rsync.lua index 3b7b8ed..7279007 100755 --- a/tests/churn-rsync.lua +++ b/tests/churn-rsync.lua @@ -14,7 +14,7 @@ local tdir, srcdir, trgdir = mktemps() churn(srcdir, 10) local logs = {} ---logs = {"-log", "Delay", "-log", "Fsevents" } +logs = {"-log", "Delay", "-log", "Fsevents" } local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5", "-rsync", srcdir, trgdir, unpack(logs))