Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32852
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: How to only get a list of the names of the non-directory files in current directory ('.')? |
| Date | Tue, 6 Nov 2012 23:23:07 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 11 |
| Message-ID | <k7c64r$c4l$1@reader1.panix.com> (permalink) |
| References | <d9b687d7-e982-4a7c-b1f9-ef38ec6ce183@googlegroups.com> <mailman.3310.1352179480.27098.python-list@python.org> <mailman.3345.1352243569.27098.python-list@python.org> |
| NNTP-Posting-Host | panix3.panix.com |
| X-Trace | reader1.panix.com 1352244187 12437 166.84.1.3 (6 Nov 2012 23:23:07 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Tue, 6 Nov 2012 23:23:07 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | csiph.com comp.lang.python:32852 |
Show key headers only | View raw
In <mailman.3345.1352243569.27098.python-list@python.org> iMath <redstone-cold@163.com> writes:
> how to get a list of names of everything in the current directory ?
Try os.listdir() .
--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to only get a list of the names of the non-directory files in current directory ('.')? iMath <redstone-cold@163.com> - 2012-11-05 21:19 -0800
Re: How to only get a list of the names of the non-directory files in current directory ('.')? Chris Angelico <rosuav@gmail.com> - 2012-11-06 16:24 +1100
Re: How to only get a list of the names of the non-directory files in current directory ('.')? iMath <redstone-cold@163.com> - 2012-11-06 15:12 -0800
RE: How to only get a list of the names of the non-directory files in current directory ('.')? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-11-06 23:41 +0000
Re: How to only get a list of the names of the non-directory files in current directory ('.')? emile <emile@fenx.com> - 2012-11-13 10:16 -0800
Re: How to only get a list of the names of the non-directory files in current directory ('.')? Chris Angelico <rosuav@gmail.com> - 2012-11-14 07:53 +1100
Re: How to only get a list of the names of the non-directory files in current directory ('.')? John Gordon <gordon@panix.com> - 2012-11-13 21:05 +0000
Re: How to only get a list of the names of the non-directory files in current directory ('.')? Chris Angelico <rosuav@gmail.com> - 2012-11-14 08:19 +1100
Re: How to only get a list of the names of the non-directory files in current directory ('.')? emile <emile@fenx.com> - 2012-11-13 13:24 -0800
Re: How to only get a list of the names of the non-directory files in current directory ('.')? iMath <redstone-cold@163.com> - 2012-11-06 15:12 -0800
Re: How to only get a list of the names of the non-directory files in current directory ('.')? John Gordon <gordon@panix.com> - 2012-11-06 23:23 +0000
csiph-web