Return files only from specific folder
<p>I wrote a function in Python, that must return file from specific folder and all subfolders. File name taken from function parameter:</p>

<pre><code>def ReturnFile(fileName)
  return open("C:\\folder\\" + fileName,"r")
</code></pre>

<p>But as <code>fileName</code> you can pass for example: <code>"..\\Windows\\passwords.txt</code>" or some unicode symbols for dots.</p>

<p>How to fix it? Some RegExp maybe?</p>
