From: Martin Jambon <martin1977@laposte.net>
To: Gerd Stolpmann <info@gerd-stolpmann.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Creating a directory with default permissions
Date: Fri, 20 Oct 2006 14:41:34 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0610201428030.21226@localhost> (raw)
In-Reply-To: <1161372076.9721.31.camel@localhost.localdomain>
On Fri, 20 Oct 2006, Gerd Stolpmann wrote:
> 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.
Oh yes, Thank you!
I got misled by the documentation which says:
val mkdir : string -> file_perm -> unit
Create a directory with the given permissions.
Martin
--
Martin Jambon, PhD
http://martin.jambon.free.fr
prev parent reply other threads:[~2006-10-20 21:42 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 ` [Caml-list] " Gerd Stolpmann
2006-10-20 21:41 ` Martin Jambon [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=Pine.LNX.4.58.0610201428030.21226@localhost \
--to=martin1977@laposte.net \
--cc=caml-list@inria.fr \
--cc=info@gerd-stolpmann.de \
/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).