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


Groups > comp.lang.python > #9851

Re: os.path.isdir do not work for Foder named '2011-07-03'

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 <mhrivnak@gmail.com>
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 <mhrivnak@hrivnak.org>
To Nulpum <changjun.cho@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1236.1311050546.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


What is the output of:

>>> os.path.exists("C:\Users\조창준\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 <changjun.cho@gmail.com>:
> 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\조창준\Desktop\logs")
> True
>>>> os.path.isdir("C:\Users\조창준\Desktop\logs\2011-07-03")
> False
> --
> http://mail.python.org/mailman/listinfo/python-list
>

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


Thread

os.path.isdir do not work for Foder named '2011-07-03' Nulpum <changjun.cho@gmail.com> - 2011-07-18 21:25 -0700
  Re: os.path.isdir do not work for Foder named '2011-07-03' Kushal Das <kushaldas@gmail.com> - 2011-07-19 10:11 +0530
  Re: os.path.isdir do not work for Foder named '2011-07-03' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-19 14:42 +1000
    Re: os.path.isdir do not work for Foder named '2011-07-03' Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-19 08:15 +0200
      Re: os.path.isdir do not work for Foder named '2011-07-03' Changjun <changjun.cho@gmail.com> - 2011-07-19 01:25 -0700
      Re: os.path.isdir do not work for Foder named '2011-07-03' Terry Reedy <tjreedy@udel.edu> - 2011-07-19 13:51 -0400
    Re: os.path.isdir do not work for Foder named '2011-07-03' Thomas Jollans <t@jollybox.de> - 2011-07-19 08:30 +0200
      Re: os.path.isdir do not work for Foder named '2011-07-03' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-19 17:26 +1000
        Re: os.path.isdir do not work for Foder named '2011-07-03' Ethan Furman <ethan@stoneleaf.us> - 2011-07-19 07:22 -0700
    Re: os.path.isdir do not work for Foder named '2011-07-03' Nulpum <changjun.cho@gmail.com> - 2011-07-19 00:21 -0700
  Re: os.path.isdir do not work for Foder named '2011-07-03' Michael Hrivnak <mhrivnak@hrivnak.org> - 2011-07-19 00:42 -0400
  Re: os.path.isdir do not work for Foder named '2011-07-03' Rob Williscroft <rtw@rtw.me.uk> - 2011-07-19 04:56 +0000
  Re: os.path.isdir do not work for Foder named '2011-07-03' Grant Edwards <invalid@invalid.invalid> - 2011-07-19 14:21 +0000

csiph-web