caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* (no subject)
@ 2000-10-27  6:36 Pierre Weis
  0 siblings, 0 replies; only message in thread
From: Pierre Weis @ 2000-10-27  6:36 UTC (permalink / raw)


ng a directory. *)

let read_directory name =
  let hand = opendir name in
  let names = ref [] in
  begin
    try
      while true do
        let name = readdir hand in
        if name <> "." && name <> ".." then
          names := name :: !names
      done
    with
      End_of_file ->
        ()
  end;
  List.rev (!names)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-10-27  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-27  6:36 Pierre Weis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).