CreateDirectoryExW(TemplateDirectory, NewDirectory, SecurityAttributes, Transaction)

Creates a directory (Unicode version)


TemplateDirectory : PyUnicode

Directory to use as a template, can be None

NewDirectory : PyUnicode

Name of directory to be created

SecurityAttributes=None : PySECURITY_ATTRIBUTES

Security for new directory (optional)

Transaction=None : PyHANDLE

Handle to a transaction (optional). See win32transaction::CreateTransaction.


If a transaction handle is passed, CreateDirectoryTransacted will be called (requires Vista or later).

Accepts keyword arguments.

Win32 API References

Search for CreateDirectoryEx at msdn, google or google groups.

Search for CreateDirectoryTransacted at msdn, google or google groups.