Issue 27368: os.mkdir is not working for multiple level of directory creation in windows environment (original) (raw)

Problem: os.mkdir is not working for multiple level of directory creation in windows environment.

Explanation: Suppose there is a directory whose path is "D:\Output"

Now to create 2 levels of directory in side the path "D:\Output", when os.mkdir("D:\Output\Dir1\Dir2") is used, python 2.7 throws errors as below: Traceback (most recent call last): File "", line 1, in WindowsError: [Error 3] The system cannot find the path specified: 'D:\Output\Dir1\Dir2'

Please update python to create multiple level of directory.