Added Augeas.count_matches
[ocaml-augeas.git] / augeas.mli
index 1123f05..3fe1e87 100644 (file)
@@ -81,5 +81,9 @@ val matches : t -> path -> path list
   (** [matches t path] returns a list of path expressions
       of all nodes matching [path]. *)
 
+val count_matches : t -> path -> int
+  (** [count_matches t path] counts the number of nodes matching
+      [path] but does not return them (see {!matches}). *)
+
 val save : t -> unit
   (** [save t] saves all pending changes to disk. *)