permission change of files in python
<p>Hi all I want to change the file permission for all the files from my current directory tree.
I am trying to open each directory and  open the files and change the permission using os.chmod(), But getting an error please help in finding the solution.</p>

<pre><code>import os
import stat

for files in os.walk('.'):
        os.chmod(files,stat.S_IXGRP)
</code></pre>
