This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients asvetlov, georg.brandl, pitrou, stefanholek, vinay.sajip
Date 2012-08-24.15:58:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345823899.82.0.194995657882.issue15776@psf.upfronthosting.co.za>
In-reply-to
Content
os.path.isdir("foo") will return True if "foo" is a symlink to a directory, and then shutil.rmtree("foo") will fail:

>>> os.path.isdir("foo")
True
>>> os.path.islink("foo")
True
>>> shutil.rmtree("foo")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/antoine/opt/lib/python3.3/shutil.py", line 456, in rmtree
    "Not a directory: '{}'".format(path))
NotADirectoryError: [Errno 20] Not a directory: 'foo'
History
Date User Action Args
2012-08-24 15:58:19pitrousetrecipients: + pitrou, georg.brandl, vinay.sajip, asvetlov, stefanholek
2012-08-24 15:58:19pitrousetmessageid: <1345823899.82.0.194995657882.issue15776@psf.upfronthosting.co.za>
2012-08-24 15:58:19pitroulinkissue15776 messages
2012-08-24 15:58:19pitroucreate