<br><br><div><span class="gmail_quote">On 1 Dec 2006 23:17:50 -0800, <b class="gmail_sendername">vj</b> <<a href="mailto:vinjvinj@gmail.com">vinjvinj@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How do I do the following unix command:<br><br>mkdir -m770 test<br><br>with the os.mkdir command. Using os.mkdir(mode=0770) ends with the<br>incorrect permissions.<br><br>Thanks,<br><br>VJ<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">
http://mail.python.org/mailman/listinfo/python-list</a></blockquote><div><br><br><br>using<br><br> os.mkdir("/home/godson/test",0770)<br><br>Allows me to do
that with out any trouble, and also please check whether you have
appropriate permission to the area where you are trying to create the
folder. os.mkdir takes no keyword arguments, if you dont have
appropriate permissions you can try running python as super user, or
user with proper permissions.<br><span class="sg"><br>Godson Gera<br><a href="http://godson.auroinfo.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://godson.auroinfo.com 
</a></span><br></div><br></div><br>