Python - Get relative path of all files and subfolders in a directory
<p>I am searching for a good way to get relative paths of files and (sub)folders within a specific folder. </p>

<p>For my current approach I am using <code>os.walk()</code>. It is working but it does not seem "pythonic" to me:</p>

<pre><code>myFolder = "myfolder"
fileSet = set() # yes, I need a set()

for root, dirs, files in os.walk(myFolder):
    for fileName in files:
        fileSet.add(root.replace(myFolder, "") + os.sep + fileName)
</code></pre>

<p>Any other suggestions?</p>

<p>Thanks</p>
