Reading directory

Sean 'Shaleh' Perry shalehperry at
Wed Oct 16 20:55:30 CEST 2002

On Wednesday 16 October 2002 11:49, Ilya Shambat wrote:
> I am sorry for the naive quality of this question, but I am new to
> Python. I need to browse through a directory and read files,
> separating directory path from file name. Does anyone know the
> commands as to how to do that?
> Thanks in advance,
> Ilya.

look into os.listdir() and the os.path module.

More information about the Python-list mailing list