Core: Fix spurious error on Linux/Unix paths.

CreateFullPath with an absolute path would try to create ''.
This commit is contained in:
Unknown W. Brackets 2018-11-17 08:55:00 -08:00
parent 8506da14f0
commit 2201c65b00

View File

@ -336,7 +336,7 @@ bool CreateFullPath(const std::string &path)
return true;
}
std::string subPath = fullPath.substr(0, position);
if (!File::Exists(subPath))
if (position != 0 && !File::Exists(subPath))
File::CreateDir(subPath);
// A safety check