mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-06 08:40:44 +00:00
fix data inconsistency, create recursively
This commit is contained in:
parent
93c7f5ceab
commit
fb177b3126
@ -377,7 +377,7 @@ open_fsevents(lua_State *L)
|
||||
printlogf(L, "Warn",
|
||||
"Using /dev/fsevents which is considered an OSX internal interface.");
|
||||
printlogf(L, "Warn",
|
||||
"Functionality might break across OSX versions");
|
||||
"Functionality might break across OSX versions (This is for 10.5.X)");
|
||||
printlogf(L, "Warn",
|
||||
"A hanging Lsyncd might cause Spotlight/Timemachine doing extra work.");
|
||||
|
||||
|
@ -3042,7 +3042,9 @@ local default_rsync = {
|
||||
|
||||
local paths = elist.getPaths(
|
||||
function(etype, path1, path2)
|
||||
if etype == "Delete" and string.byte(path1, -1) == 47 then
|
||||
if (etype == "Delete" or etype == "Create")
|
||||
and string.byte(path1, -1) == 47
|
||||
then
|
||||
return sub(path1) .. "***", sub(path2)
|
||||
else
|
||||
return sub(path1), sub(path2)
|
||||
|
@ -18,7 +18,7 @@ local pid = spawn("./lsyncd", "-nodaemon", "-delay", "5",
|
||||
cwriteln("waiting for Lsyncd to startup")
|
||||
posix.sleep(1)
|
||||
|
||||
churn(srcdir, 100)
|
||||
churn(srcdir, 500)
|
||||
|
||||
cwriteln("waiting for Lsyncd to finish its jobs.")
|
||||
posix.sleep(10)
|
||||
|
Loading…
Reference in New Issue
Block a user