How do I get number of files in a particular directory.

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Fri Aug 13 04:44:13 EDT 2010


blur959 a écrit :
> Hi, all, Is there a way to get a number of files in a particular
> directory? I tried using os.walk, os.listdir but they are return me
> with a list, tuple of the files, etc. But I want it to return a
> number. Is it possible?

len(any_sequence)



More information about the Python-list mailing list