06-26-2017, 11:09 AM
(This post was last modified: 06-26-2017, 11:20 AM by Rick Johnson.)
I'm getting different results here with Mac and Win 10, using AI 21:
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?
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?