[ python-Bugs-1209447 ] os.path.join() fails if 2nd arg is a UNC path

SourceForge.net noreply at sourceforge.net
Fri Jun 3 20:09:26 CEST 2005


Bugs item #1209447, was opened at 2005-05-26 22:45
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1209447&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: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: John Ehresman (jpe)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.path.join() fails if 2nd arg is a UNC path

Initial Comment:
os.path.join('c:', r'\server\share') returns
c:\server\share rather than \server\share. 
Interestingly os.path.join('c:a', r'\server\share')
returns r'\server\share'.  IMHO, r'\server\share'
should be returned in all cases.

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

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-03 20:09

Message:
Logged In: YES 
user_id=1188172

I'd recommend not to change the behaviour, but add a note in
the docs that UNCs are not recognized as such in os.path.join.

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

Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-05-31 12:25

Message:
Logged In: YES 
user_id=1188172

This is a difficult issue, since as far as I recall Windows
allows two or more backslashes in a row in the middle of
normal paths.

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

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


More information about the Python-bugs-list mailing list