Using CreateDirectory does not recursively create parent directories if they do not exists.
For instance, this fails to create any directory:
string path = "$Profile:/Parent/Child/Grandchild"; CreateDirectory(path);
I would expect it to create each directory if the parent does not exist.
C:\PROGRAM FILES (X86)\STEAM\STEAMAPPS\COMMON\DAYZSERVER\SERVERPROFILE\ └───Parent └───Child └───Grandchild