caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Martin Jambon <martin1977@laposte.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Creating a directory with default permissions
Date: Fri, 20 Oct 2006 21:21:15 +0200	[thread overview]
Message-ID: <1161372076.9721.31.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0610201120050.20408@localhost>

Am Freitag, den 20.10.2006, 11:43 -0700 schrieb Martin Jambon:
> Hello,
> 
> Is there a way to write portable OCaml code which creates a directory
> with the default permissions as defined by umask?

I don't see your problem. Unix.mkdir filename 0o777 does exactly what
you want.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
------------------------------------------------------------


  reply	other threads:[~2006-10-20 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20 18:43 Martin Jambon
2006-10-20 19:21 ` Gerd Stolpmann [this message]
2006-10-20 21:41   ` [Caml-list] " Martin Jambon

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=1161372076.9721.31.camel@localhost.localdomain \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    --cc=martin1977@laposte.net \
    /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).