[New-bugs-announce] [issue15946] Windows 8 x64 - IO-Error
Christian Mikula
report at bugs.python.org
Sat Sep 15 14:57:40 CEST 2012
New submission from Christian Mikula:
OS Windows 8 Enterprise x64 clean installed.
Python Version 2.6.6 and 2.7.3 both x64 installed.
Problem is to delete one Directory and immediately after create one new with the same Name!
!!! Code !!!
import sys, platform, os, shutil
TEST_PATH = "/test"
print "platform:\t", platform.platform()
print "sys.platform:\t", sys.platform
print "sys.version:\t", sys.version
print "directory test:\t'%s'" % TEST_PATH
print
if os.path.exists(TEST_PATH):
shutil.rmtree(TEST_PATH)
if not os.path.exists(TEST_PATH):
os.makedirs(TEST_PATH)
print "success"
!!! End of code !!!
The error is only present if the Directory was deleted previously.
Error:
Traceback (most recent call last):
File "dir_test.py", line 23, in <module>
os.makedirs(BUILD_PATH)
File "C:\Program Files\Python27\lib\os.py", line 157, in makedirs
mkdir(name, mode)
WindowsError: [Error 5] Zugriff verweigert: '/test'
----------
components: IO, Windows
files: dir_test.png
messages: 170514
nosy: cmikula
priority: normal
severity: normal
status: open
title: Windows 8 x64 - IO-Error
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file27193/dir_test.png
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15946>
_______________________________________
More information about the New-bugs-announce
mailing list