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 UAA29066; Wed, 30 Jul 2003 20:38:05 +0200 (MET DST) 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 UAA27312 for ; Wed, 30 Jul 2003 20:38:03 +0200 (MET DST) Received: from hq-ex2kgw1.filenet.fn.com (Filenet-gw.filenet.com [198.3.8.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with SMTP id h6UIc2T26841 for ; Wed, 30 Jul 2003 20:38:02 +0200 (MET DST) Received: from hq-ex2kpo1.filenet.fn.com ([10.1.0.165]) by hq-ex2kgw1.filenet.fn.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 30 Jul 2003 11:38:00 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message Subject: [Caml-list] Reading directory Problem Date: Wed, 30 Jul 2003 11:37:59 -0700 Message-ID: <69FB2CA668C6D841BE0326C13071C69FA8D49B@hq-ex2kpo1.filenet.fn.com> Thread-Topic: Reading directory Problem Thread-Index: AcNWybOTmFDfGjHSS72Kpo+nCx4hAA== From: "Le, To Trinh" To: X-OriginalArrivalTime: 30 Jul 2003 18:38:00.0442 (UTC) FILETIME=[B3F9E5A0:01C356C9] X-Loop: caml-list@inria.fr X-Spam: no; 0.00; struct:01 readdir:01 null:01 wrote:03 type:07 problem:07 U4:88 dir:12 hello:15 file:18 name:78 level:23 know:24 directory:25 reading:26 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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; I do not know how to check if it is directory the we go to next level. Thank you ToTrinh Le ------------------- 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