Upload umask decorator
Lukas Zapletal
lukas91 at zapletalovi.com
Tue Mar 10 10:33:01 GMT 2009
Hello,
I am writing brand new decorator that will allow users to set upload
umask. It will change mode of all newly created files/dirs according the
provided umask.
The decorator called UpmaskDecorator (prefix upmask+) will read
configuration value upload_mask from authentication.conf. If specified
and the decorator is used than all new files and dirs will be created
using this mask as the well known UNIX util umask.
Do you think its ok to have this configuration in this file? There is
already verify_certificates which applies to HTTPS. Or do you suggest
any other location for this variable?
There is other solution - without any variable at all. In this scenario
the mask could be encoded in the prefix. Like upmask777+ or upmask766+
but I dont think this is good idea.
Thanks for comments.
--
Lukáš Zapletal
http://lukas.zapletalovi.com
More information about the bazaar
mailing list