python if file does not exist fails
<p>so I have a loop that checks folder if it contains *.zip file</p>

<pre><code>for file in glob.glob( os.path.join(rootdir, '*.zip')):
        print "zip", file
        #Check if file does not exist
        if not os.path.exists(file):
            print "No files"
            #return
        else:
            some code
</code></pre>

<p>Now if file exist else works, but if there is no zip file print does not happen</p>

<p>Any suggestions??
Thank you</p>
