Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] files or directories
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jun P. FURUSE <Jun.Furuse@i...>
Subject: Re: [Caml-list] files or directories
> 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