Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:How': 0.09; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:files': 0.09; '"python': 0.16; 'anymore': 0.16; 'googling': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:non': 0.16; 'wrote:': 0.17; 'question.': 0.20; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.28; 'subject:list': 0.28; 'yields': 0.29; 'url:python': 0.32; 'to:addr:python-list': 0.33; 'tutorial': 0.33; 'list': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'url:org': 0.36; 'beyond': 0.37; 'level': 0.37; 'well.': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'url:docs': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'google': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'information': 0.63; 'friend': 0.81; 'subject:get': 0.81; 'received:pacbell.net': 0.84; 'url:tutorial': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: emile Subject: Re: How to only get a list of the names of the non-directory files in current directory ('.')? Date: Tue, 13 Nov 2012 10:16:45 -0800 References: <31a0765f-c366-4f19-8d6c-bc95e0e51265@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-69-226-129-65.dsl.pltn13.pacbell.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 In-Reply-To: <31a0765f-c366-4f19-8d6c-bc95e0e51265@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1352830625 news.xs4all.nl 6911 [2001:888:2000:d::a6]:56480 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33255 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...