Hot Door CORE Forum

Full Version: makeDirectory permissions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting different results here with Mac and Win 10, using AI 21:

Code:
OKsoFar = hdi::core::files::makeDirectory(this->prefPath, 0777);

The header says this is safe to use if the directory already exists. If it does exist, Mac returns true, Win returns false. Both create the directory if it does not exist. A reasonable workaround is to ignore the result and check again if the directory exists, but I'd rather be certain that I'm using the function correctly. Could it be that I'm specifying the permissions wrong?
Thanks for reporting this. Looks like a minor bug in handling the return value of the internal Windows function that creates the directory. Windows considers it an error condition if the directory already exists, and we'll need to add a manual check for this.