Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2006-10-20 (18:44)
From: Martin Jambon <martin1977@l...>
Subject: Creating a directory with default permissions

Is there a way to write portable OCaml code which creates a directory
with the default permissions as defined by umask?

According to the documentation, Unix.umask is not available under Win32,
yet some functions ask for some file permissions. I don't know much about
Windows, but would there be a problem with having a Win32 Unix.umask
function which initially returns 0?



Martin Jambon, PhD