Skip to content

Commit

Permalink
Merge pull request #379 from talex5/readdir-docs
Browse files Browse the repository at this point in the history
Document that read_dir excludes '.' and '..'
  • Loading branch information
talex5 authored Dec 5, 2022
2 parents a17ec44 + 7670c6a commit 3c4bca8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib_eio/path.mli
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ val with_open_dir : _ t -> (<dir; Flow.close> t -> 'a) -> 'a
it automatically when [fn] returns (if it hasn't already been closed by then). *)

val read_dir : _ t -> string list
(** [read_dir t] reads directory entries for [t]. The entries are sorted using {! String.compare}.*)
(** [read_dir t] reads directory entries for [t].
The entries are sorted using {! String.compare}.
Note: The special Unix entries "." and ".." are not included in the results. *)

(** {1 Other} *)

Expand Down

0 comments on commit 3c4bca8

Please sign in to comment.