caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Lionel Fourquaux" <lionel.fourquaux@wanadoo.fr>
To: "'Kontra, Gergely'" <kgergely@mlabdial.hit.bme.hu>,
	"'Maxence Guesdon'" <maxence.guesdon@inria.fr>
Cc: <caml-list@inria.fr>
Subject: RE: [Caml-list] finding files
Date: Wed, 21 Aug 2002 20:41:12 +0200	[thread overview]
Message-ID: <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAtdHQFIzH0BGJPSBMT09QIMKAAAAQAAAAkUr5moI8q0KVmSSA3LpkDgEAAAAA@wanadoo.fr> (raw)
In-Reply-To: <Pine.LNX.4.21.0208212023580.22311-100000@mlabdial.hit.bme.hu>

[-- Attachment #1: Type: text/plain, Size: 992 bytes --]

> From: owner-caml-list@pauillac.inria.fr [mailto:owner-caml-
> list@pauillac.inria.fr] On Behalf Of Kontra, Gergely
> Sent: Wednesday, August 21, 2002 8:25 PM
> To: Maxence Guesdon
> Cc: caml-list@inria.fr
> Subject: Re: [Caml-list] finding files
> 
> >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
> 
> Nice. But how to do it under windows?
> 

	Using OCaml, you can do it in the same way. However, note that
Unix.stat calls the _stat function provided by MS' C runtime (except for
cygwin), and this implementation is _very_ limited (e.g. don't use
st_ino : it's filled with a dummy value). If you need something more
powerful, you will have to call Win32 APIs (GetFileInformationByHandle,
GetFileSize, GetFileType, GetFileSecurity, ...). Some OCaml wrapper
libraries for Win32 have been written.

	Hope this helps.


		Lionel Fourquaux


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 1484 bytes --]

      parent reply	other threads:[~2002-08-21 18:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-21 15:47 Kontra, Gergely
2002-08-21 17:45 ` Kontra, Gergely
2002-08-21 17:52   ` Maxence Guesdon
2002-08-21 18:24     ` Kontra, Gergely
2002-08-21 18:33       ` Maxence Guesdon
2002-08-21 18:41       ` Lionel Fourquaux [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=''\!'~'\!'UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAtdHQFIzH0BGJPSBMT09QIMKAAAAQAAAAkUr5moI8q0KVmSSA3LpkDgEAAAAA@wanadoo.fr' \
    --to=lionel.fourquaux@wanadoo.fr \
    --cc=caml-list@inria.fr \
    --cc=kgergely@mlabdial.hit.bme.hu \
    --cc=maxence.guesdon@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).