Issue2277

classification
Title: os.makedirs() fails on UNC network paths
Type: Severity: critical
Components: Library Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: nazarlviv07, zyasoft
Priority: Keywords:

Created on 2015-03-03.10:37:57 by nazarlviv07, last changed 2015-03-03.17:58:46 by zyasoft.

Messages
msg9571 (view) Author: Nazar (nazarlviv07) Date: 2015-03-03.10:37:57
os.makedirs() fails with Errno 17 [File exists] when trying to execute on a UNC path ("\\\\deploy\\1.9.83-20150202083042\\docs\\doctrees\\subfolder").
List of code is below

================================================
dirname = "\\\\deploy\\1.9.83-20150202083042\\docs\\doctrees\\subfolder"
if not path.isdir(dirname):
    os.makedirs(dirname)
=================================================
During execution os.makedirs(dirname) Errno 17 [File exists] occured.
I have checked manually folder "subfolder" is not exist before and after execution the program.
Could you help me resolve this problem?
msg9572 (view) Author: Jim Baker (zyasoft) Date: 2015-03-03.17:08:08
Likely a duplicate of http://bugs.jython.org/issue2120 - it's the same underlying code, and should be a straightforward fix if indeed it's a problem.

Please try the simpler case of os.mkdir to see if this is the case
msg9574 (view) Author: Jim Baker (zyasoft) Date: 2015-03-03.17:58:46
Confirmed, this is a duplicate of #2120
History
Date User Action Args
2015-03-03 17:58:46zyasoftsetstatus: open -> closed
resolution: duplicate
messages: + msg9574
2015-03-03 17:08:08zyasoftsetnosy: + zyasoft
messages: + msg9572
2015-03-03 10:37:57nazarlviv07create