Version française
Home     About     Download     Resources     Contact us    
Browse thread
Creating a directory with default permissions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Gerd Stolpmann <info@g...>
Subject: Re: [Caml-list] Creating a directory with default permissions
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
------------------------------------------------------------