How to only get a list of the names of the non-directory files in current directory ('.')?
emile
emile at fenx.com
Tue Nov 13 13:16:45 EST 2012
On 11/06/2012 03:12 PM, iMath wrote:
> how to get a list of names of everything in the current directory ?
Start by working through the tutorial to get familiar with python at
http://docs.python.org/2/tutorial/
then for your specific question, review the content at
http://www.diveintopython.net/file_handling/os_module.html
Emile
BTW, googling for "python how to get a list of names of everything in
the current directory" yields some good information as well. Google is
your friend for this level of question. Not sure anymore beyond that...
More information about the Python-list
mailing list