Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'path,': 0.07; '>>>>': 0.09; 'reason.': 0.09; 'skip:o 50': 0.09; 'output': 0.11; 'subject:named': 0.16; 'cc:addr:python-list': 0.16; '>>>': 0.16; 'exists.': 0.19; 'subject:not': 0.21; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'sender:addr:gmail.com': 0.26; 'url:mailman': 0.27; 'message- id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; 'url:listinfo': 0.32; 'michael': 0.32; "skip:' 10": 0.32; 'does': 0.32; 'anyone': 0.33; "can't": 0.34; 'folder': 0.35; 'url:python': 0.37; 'issue': 0.37; 'some': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'either': 0.39; 'received:209': 0.40; 'here': 0.66; 'why?': 0.73; 'subject:skip:o 10': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=u7CXjfllwGSz7z5SsaEXtMVx7TDR+IxjeynzZjkR584=; b=rV1HmkGACl5E98chlfrdiKf2EpdHfjmExOAB73A8SYswGq8ImfnJbwd2NlHsr5wlCB BlmW5l6WgBs6zYPxVKCwEX42AHB6vjscGT/QPb2+kyHGlD9MlSVrhuoQoemNiLPa3BqL PR6dtkX1K+ieAouLW5WxF9o6c5n3BkMEJUcwU= MIME-Version: 1.0 Sender: mhrivnak@gmail.com In-Reply-To: <0bf400a3-735c-487a-8d74-feb3b56be99b@g5g2000prn.googlegroups.com> References: <0bf400a3-735c-487a-8d74-feb3b56be99b@g5g2000prn.googlegroups.com> Date: Tue, 19 Jul 2011 00:42:24 -0400 X-Google-Sender-Auth: XGg6C8Ts28W4QsAc4iy5AdQIfd0 Subject: Re: os.path.isdir do not work for Foder named '2011-07-03' From: Michael Hrivnak To: Nulpum Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311050546 news.xs4all.nl 23885 [2001:888:2000:d::a6]:38013 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9851 What is the output of: >>> os.path.exists("C:\Users\=C1=B6=C3=A2=C1=D8\Desktop\logs\2011-07-03") ? One possible issue here is that for some reason os.path.isdir() can't even access the directory either because of permissions, misinterpretation of the path, or some other reason. Michael 2011/7/19 Nulpum : > I want to make sure that folder exists. > > '2011-07-03' is really exists. but 'os.path.isdir' say false > > Does anyone know why? > > > >>>> os.path.isdir("C:\Users\=C1=B6=C3=A2=C1=D8\Desktop\logs") > True >>>> os.path.isdir("C:\Users\=C1=B6=C3=A2=C1=D8\Desktop\logs\2011-07-03") > False > -- > http://mail.python.org/mailman/listinfo/python-list >