Iterating through directories and checking the file's size
<p>I want to iterate through directories, and subdirectories, and check each file for a filesize. If it matches the defined filesize, it will be deleted. </p>

<p>I know, that i have to use os.walk, but i'm not quite sure, in which way. </p>

<p>The code i used for directory listing is :</p>

<pre><code>import os
path = "C:\\Python27"
i=0
for (path,dirs,files) in os.walk(path):
    print files
    i=i+1
    if i&gt;10:
        break
</code></pre>
