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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Maxence Guesdon <maxence.guesdon@i...>
Subject: Re: [Caml-list] finding files

> >Is there a way to search for files in a given directory? I want to
> >program a lightweight windows commander clone...
> I mean to get all the files in a directory.
> And how to figure their size, attributes....
> 
> Gergo
> 
> +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
> |         Email: kgergely@mcl.hu,  kgergely@turul.eet.bme.hu          |
> |  URL:   turul.eet.bme.hu/~kgergely    Mobile: (+36 20) 356 9656     |
> +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
> .
> Magyar php mirror es magyar php dokumentacio: http://hu.php.net
> 
> -------------------
> 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
> 

Under Unix, use the following functions in the Unix module:
Unix.opendir
Unix.readdir 
Unix.stat (and the various fields of the returned value)
Unix.closedir

-- 
Maxence Guesdon
-------------------
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