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.

classification
Title: os.path.makedirs DOES handle UNC paths
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, jvickroy, pterk
Priority: normal Keywords:

Created on 2005-11-15 20:40 by jvickroy, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26884 - (view) Author: j vickroy (jvickroy) Date: 2005-11-15 20:40
File:
http://www.python.org/doc/current/lib/os-file-dir.html

Paragraph:
"""
makedirs( path[, mode]) 

Recursive directory creation function. Like mkdir(), 
but makes all intermediate-level directories needed 
to contain the leaf directory. Throws an error 
exception if the leaf directory already exists or 
cannot be created. The default mode is 0777 (octal). 
This function does not properly handle UNC paths 
(only relevant on Windows systems; Universal Naming 
Convention paths are those that use the `\\host\path' 
syntax). New in version 1.5.2. 
"""

I just os.path.makedirs(...) with a UNC path and it 
DID create the desired folder on the specified host.

The "in development" documentation is the same as the 
above documentation.

I did not see any reference to this in the existing 
documentation bug reports.

My particulars ...

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 
32 bit (Intel)] on win32

Windows XP-pro (all latest patches)
msg26885 - (view) Author: Peter van Kampen (pterk) Date: 2005-11-18 11:41
Logged In: YES 
user_id=174455

I looks like the os.path (see ntpath.py) module has been
updated to deal with UNC-paths somewhere between the 2.2.3
and 2.3.5 releases.

Confirmed to work with python 2.3.5 and 2.4.1. It does NOT
work in python 2.2.3. 

I have submitted a patch
(http://sourceforge.net/tracker/index.php?func=detail&aid=1359879&group_id=5470&atid=305470)
that removes the comment.
msg26886 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-11-22 20:15
Logged In: YES 
user_id=1188172

Committed patch by pterk.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42597
2005-11-15 20:40:51jvickroycreate