Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.018 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'tree': 0.05; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'subject:Help': 0.11; '24,': 0.16; 'doesnt': 0.16; 'finishes': 0.16; 'wrote:': 0.18; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'error': 0.23; 'skip': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'quickly': 0.29; 'message-id:@mail.gmail.com': 0.30; 'search.': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'pm,': 0.38; 'to:addr:gmail.com': 0.65; 'mar': 0.68; 'walk': 0.74; '2015': 0.84; 'gregg': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dJ/khubzwlUU04YleWmjShYf+HXEMkDML1kHlwT+XG4=; b=jues3LIsChgQoBL5Sthn4TLFCyxWj9cv4rKGq1tzsgAxtgG5zZinNiyqz3ePwaiBQ5 miUhS3PpIicXNnlwyvq1qBVyuiSjdr+DHbgONlQKvHbae9BY06uxckEQ98jNG55DPGqT I9n5Zmrlo+ygSY/vAr0gWzHACq2l49fv9s0WYV+zgdq/Ru7jX3jlmmcSDQyrWICjRscE rhWTkAA863gh8SIcIwwTY5xgwW3CkiN2MV4CJWFJuz7LC7/lXA/Y/iLkmkRYF7oSk1sO 0rhRTMit9/OmS1JuCfcMVXRwbb72Ra1TbKBrc/iaMj0xK/AqqDZcTfV7c7aLI1hhvcVO v1bA== MIME-Version: 1.0 X-Received: by 10.202.60.66 with SMTP id j63mr4251066oia.83.1427225715364; Tue, 24 Mar 2015 12:35:15 -0700 (PDT) In-Reply-To: <43835701-a845-4a59-8936-0be236dfa59f@googlegroups.com> References: <099b0ca2-1f5e-4eb4-a7d0-d8210bcca51a@googlegroups.com> <43835701-a845-4a59-8936-0be236dfa59f@googlegroups.com> Date: Tue, 24 Mar 2015 14:35:15 -0500 Subject: Re: Regex Python Help From: Skip Montanaro To: Gregg Dotoli Cc: Python Content-Type: multipart/alternative; boundary=001a113cca3ec759e705120de1b8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427226114 news.xs4all.nl 2881 [2001:888:2000:d::a6]:50055 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87898 --001a113cca3ec759e705120de1b8 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 24, 2015 at 2:22 PM, Gregg Dotoli wrote: > The print error is gone, but now the script quickly finishes and doesnt > walk > the OS tree or search. > You need to walk the directory tree recursively. Take a look at os.walk(). Skip --001a113cca3ec759e705120de1b8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

= On Tue, Mar 24, 2015 at 2:22 PM, Gregg Dotoli <gdotoli@gmail.com> wrote:
The print error is gone, but now the script qu= ickly finishes and doesnt walk
the OS tree or search.

You need to walk the dir= ectory tree recursively. Take a look at os.walk().

Skip

--001a113cca3ec759e705120de1b8--