[ python-Bugs-1373197 ] os.makedirs fail if path contains os.pardir

SourceForge.net noreply at sourceforge.net
Mon Dec 5 03:08:11 CET 2005


Bugs item #1373197, was opened at 2005-12-05 04:05
Message generated for change (Comment added) made by nirs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1373197&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nir Soffer (nirs)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.makedirs fail if path contains os.pardir

Initial Comment:
os.makedirs fail with "OSError: [Errno 17] File exists:" error when trying 
to create paths like 'a/b/../c' or 'a/b/c/..'.

Seen on 2.3.0, 2.4.1 and 2.5.0.

Included patch with new test cases that fail with current 2.5 code. 

----------------------------------------------------------------------

>Comment By: Nir Soffer (nirs)
Date: 2005-12-05 04:08

Message:
Logged In: YES 
user_id=832344

And here are the tests.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1373197&group_id=5470


More information about the Python-bugs-list mailing list