mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-11-10 15:20:58 +00:00
fixing new concern inotfy optimization
This commit is contained in:
parent
774f99bc21
commit
e152564185
@ -1033,13 +1033,12 @@ local Sync = (function()
|
||||
--
|
||||
local function concerns(self, path)
|
||||
-- not concerned if watch rootdir doesnt match
|
||||
if not self.source:starts(path) then
|
||||
if not path:starts(self.source) then
|
||||
return false
|
||||
end
|
||||
print("subdirtest", path:sub(#self.source, -1))
|
||||
|
||||
-- a sub dir and not concerned about subdirs
|
||||
if self.config.subdirs ~= nil and not self.config.subdirs and
|
||||
if self.config.subdirs == false and
|
||||
path:sub(#self.source, -1):match("[^/]+/?")
|
||||
then
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user