RFD: deprecate permissions-related stuff in System.Directory

Henning Thielemann lemming at henning-thielemann.de
Thu Aug 23 06:10:05 EDT 2007


On Thu, 23 Aug 2007, Simon Marlow wrote:

> I propose to deprecate all this, in favour of using platform-specific 
> functionality instead.  Here's why:
>
> * Most uses of `getPermissions` are wrong.  If you use `getPermissions` to
>   predict whether a future operation will fail or not, then the right
>   thing to do is to perform the operation and catch the failure exception.

very true

> These functions are hardly ever used.  I did a Google code search for 
> setPermissions and aside from implementations of setPermissions itself and 
> tests for it, I came up with:

I used setting of permissions for 'install' like commands. E.g., I 
generated some HTML and wrote it to some place where it must be accessed 
by the werb server.



More information about the Libraries mailing list