Directories
Oleg Broytmann
phd at sun.med.ru
Tue Apr 27 12:00:27 EDT 1999
On Tue, 27 Apr 1999 smoothasice at geocities.com wrote:
> Hi, i'm curious if there is a python command or set of commaneds that
> could be used like the dir() command in dos prompt. I am trying to
> write a program in python that would allow me to list the files of a
> certain data type in a few directories but I need to know how I would do
> that ...thanks a bundle.
fnmatch standard module pretty good on it. Full listsing could also be
generated by os.listdir().
> Anton
Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list