[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Chris Uzdavinis <chris@a...> |
| Subject: | Re: [Caml-list] Reading directory Problem |
"Le, To Trinh" <tle@filenet.com> writes:
> Hello,
>
> I have problem with determine directory or file type. I wrote
> DIR * dirp; struct dirent *pDirent;
> while((pDirent=readdir(dirp)) != NULL)
> {
> if(pDirent->d_name[0] == '.' continue;
This isn't a C newsgroup... but...
Ocaml has a function called "stat" (in the Unix module) that can give
you this information. Who knows, maybe the stat function is available
in the POSIX spec too, with a C interface. It seems that the POSIX
people copied the OCAML "Unix" library fairly closely. <g>
--
Chris
-------------------
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