It checks if the given directory exists and if it doesn't exist it will be created. If you are sure that it doesn't exist you can directly create a directory with DirectoryCreate.
You can find many useful functions to handle files and directories in Path.h. Have a look there.