Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33255

Re: How to only get a list of the names of the non-directory files in current directory ('.')?

From emile <emile@fenx.com>
Subject Re: How to only get a list of the names of the non-directory files in current directory ('.')?
Date 2012-11-13 10:16 -0800
References <d9b687d7-e982-4a7c-b1f9-ef38ec6ce183@googlegroups.com> <mailman.3310.1352179480.27098.python-list@python.org> <31a0765f-c366-4f19-8d6c-bc95e0e51265@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.3640.1352830625.27098.python-list@python.org> (permalink)

Show all headers | View raw


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...




Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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