python-read file names and build a namelist
<p>I want to make a name list and store all the names in four folders. I build</p>

<pre><code>namelist = {1:[], 2:[], 3:[], 4:[]}
</code></pre>

<p>In the method, I write</p>

<pre><code>for file_name in sorted(os.listdir(full_subdir_name)):
    full_file_name = os.path.join(full_subdir_name,file_name)
    #namelist[level] += blabla...
</code></pre>

<p>I want to add the names from the first folder into namelist[1], from the second folder to namelist[2]. I don't know how I can add all the names in different levels to it. Thx!</p>
