mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: udarwinfswatch: the issue that when monitoring the root directory, changes in the second-level directory were also matched
This commit is contained in:
parent
b27864fe36
commit
9df79dc94a
1 changed files with 4 additions and 1 deletions
|
|
@ -357,7 +357,10 @@ begin
|
|||
// not watchSubtree, and startsWith watchPath
|
||||
// detect if fullPath and watchPath in the same level
|
||||
fullPathDeep:= fullPath.CountChar(PathDelim);
|
||||
watchPathDeep:= watchPath.CountChar(PathDelim)+1;
|
||||
if watchPath = PathDelim then
|
||||
watchPathDeep:= 1
|
||||
else
|
||||
watchPathDeep:= watchPath.CountChar(PathDelim)+1;
|
||||
Result:= fullPathDeep=watchPathDeep;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue