From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA17904; Fri, 21 Mar 2003 10:57:32 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA18107 for ; Fri, 21 Mar 2003 10:57:31 +0100 (MET) Received: from madiran.inria.fr (madiran.inria.fr [128.93.8.77]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2L9vUX01388 for ; Fri, 21 Mar 2003 10:57:31 +0100 (MET) Received: from madiran.inria.fr ([128.93.8.77] helo=localhost ident=furuse) by madiran.inria.fr with esmtp (Exim 3.35 #1 (Debian)) id 18wJHF-0002DK-00; Fri, 21 Mar 2003 10:57:29 +0100 Date: Fri, 21 Mar 2003 10:57:29 +0100 (CET) Message-Id: <20030321.105729.74746594.Jun.Furuse@inria.fr> To: halnaf@hotmail.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] files or directories From: "Jun P. FURUSE" In-Reply-To: References: X-URL: http://pauillac.inria.fr/~furuse/ X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; furuse:01 caml-list:01 labltk:01 listbox:01 opendir:01 unix:02 forbid:03 suffix:03 type:07 stat:07 function:09 xml:10 U6:88 jun:12 couldn't:13 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > hello, > > I made a browser in labltk, > I display files and directories in a listbox, > but i want to separate directories and files, to forbid to make > "opendir" to a file. > I try with function in Filename but I could choose one type of files like > ".xml" with test on suffix, but i couldn't have the entire list of files. Use Unix.stat. -- Jun ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners