# (hopefully) correctly create missing directories, e.g. data/cache/

refs #279

This was SVN commit r7057.
This commit is contained in:
janwas 2009-07-31 21:31:04 +00:00
parent 9ca097da58
commit 74d37b17f0

View File

@ -66,7 +66,8 @@ LibError vfs_Lookup(const VfsPath& pathname, VfsDirectory* startDirectory, VfsDi
{
Path currentPath;
if(directory->AssociatedDirectory()) // (is NULL when mounting into root)
currentPath = directory->AssociatedDirectory()->GetPath()/subdirectoryName;
currentPath = directory->AssociatedDirectory()->GetPath();
currentPath /= subdirectoryName;
const int ret = mkdir(currentPath.external_directory_string().c_str(), S_IRWXO|S_IRWXU|S_IRWXG);
if(ret == 0)