|
@@ -357,7 +357,10 @@ begin
|
|
// not watchSubtree, and startsWith watchPath
|
|
// not watchSubtree, and startsWith watchPath
|
|
// detect if fullPath and watchPath in the same level
|
|
// detect if fullPath and watchPath in the same level
|
|
fullPathDeep:= fullPath.CountChar(PathDelim);
|
|
fullPathDeep:= fullPath.CountChar(PathDelim);
|
|
- watchPathDeep:= watchPath.CountChar(PathDelim)+1;
|
|
|
|
|
|
+ if watchPath = PathDelim then
|
|
|
|
+ watchPathDeep:= 1
|
|
|
|
+ else
|
|
|
|
+ watchPathDeep:= watchPath.CountChar(PathDelim)+1;
|
|
Result:= fullPathDeep=watchPathDeep;
|
|
Result:= fullPathDeep=watchPathDeep;
|
|
end;
|
|
end;
|
|
|
|
|