[BangPypers] Listing files in a folder using python

Baishampayan Ghose b.ghose at gmail.com
Tue Feb 26 03:58:29 CET 2013

I didn't read the whole PHP code, but I guess you are trying to scan a
directory for files, etc. This can be accomplished using the os.walk
function in Python - http://docs.python.org/2/library/os.html#os.walk


On Tue, Feb 26, 2013 at 8:19 AM, T S KAMATH <tsk.kamath at gmail.com> wrote:
> as a newbie to python, I am looking for some advance examples for some functions.. so that my learning curve is short..
> I have used a code in php http://www.php.net/manual/en/function.scandir.php#109115, which works fine,
> My question is can a similar featured listing be done in Python.. if you could guide me it would be great..
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers

Baishampayan Ghose
b.ghose at gmail.com

More information about the BangPypers mailing list