Getting TypeError in Changing file permissions

Jeff Epler jepler at unpythonic.net
Fri Jul 22 21:50:41 CEST 2005


If you are using Unix, and all you have is the file object, you can use
    os.fchmod(outfile.fileno(), 0700)

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050722/89d53475/attachment.sig>


More information about the Python-list mailing list