Python os.walk examplehttps://www.saltycrane.com/blog/2007/03/python-oswalk-example/#comments2014-12-15T16:24:05-08:00Comment by Jerry Spicklemire
2014-12-15T16:24:05-08:00https://www.saltycrane.com/comments/cr/18/116/#c123882
<p>Super! Now, how do you display metadata, such as permissions, last change time, last access time, file size, etc. such as:</p>
<p>ls -la </p>
<p>in Linux , Unix, </p>
<p>or </p>
<p>dir /q /a</p>
<p>on Windows?</p>
<p>Preferably in a single command, as above.</p>
Comment by LeeG
2013-07-31T09:30:59-07:00https://www.saltycrane.com/comments/cr/18/116/#c95375
<p>Clear, simple, understandable example. Thanks!</p>
Comment by lokinou
2013-03-13T04:59:48-07:00https://www.saltycrane.com/comments/cr/18/116/#c80067
<p>Simple and useful, thanks a lot</p>
Comment by Saichovsky
2013-02-16T04:26:39-08:00https://www.saltycrane.com/comments/cr/18/116/#c76745
<p>Is it possible to have this method order the files by date rather than by name?</p>
Comment by Anonymous
2011-10-20T20:14:43-07:00https://www.saltycrane.com/comments/cr/18/116/#c39973
<p>I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! I LOVE YOU!! THANKS A BUNCH!</p>
Comment by dilip reddy
2011-03-25T02:27:19-07:00https://www.saltycrane.com/comments/cr/18/116/#c29782
<p>got a good grip </p>
Comment by DriveByCommenter
2011-02-24T14:54:42-08:00https://www.saltycrane.com/comments/cr/18/116/#c27861
<p>Thanks, dude. The snippet was easy enough that I got motivated to play around with it a bit, instead of the usual "yeah, I understand it, no need to try it out".</p>
Comment by Elad
2010-10-15T07:54:03-07:00https://www.saltycrane.com/comments/cr/18/116/#c18119
<p>Thaks man!
exactly the code example i was looking for...</p>
Comment by pedro
2010-10-06T09:06:14-07:00https://www.saltycrane.com/comments/cr/18/116/#c17607
<p>interesting how it returns the windows path with both a '/' and '\'.</p>
Comment by Musthafa
2010-01-27T15:40:33-08:00https://www.saltycrane.com/comments/cr/18/116/#c7306
<p>it helped me greatly</p>
Comment by mikeandtherest
2009-11-01T05:19:19-08:00https://www.saltycrane.com/comments/cr/18/116/#c5549
<p>Thanks a lot for your example. It really helped!</p>
Comment by andrew
2009-09-18T20:19:55-07:00https://www.saltycrane.com/comments/cr/18/116/#c4572
<p>This was extremely helpful! Thank you!</p>
Comment by boroto
2009-07-11T08:42:35-07:00https://www.saltycrane.com/comments/cr/18/116/#c3332
<p>Many thanks. Really util for me.</p>
Comment by Anonymous
2008-03-27T15:58:00-07:00https://www.saltycrane.com/comments/cr/18/116/#c2301
<p>Thanks for your post and example. It helped me.</p>