forked from 0ad/0ad
# (hopefully) correctly create missing directories, e.g. data/cache/
refs #279 This was SVN commit r7057.
This commit is contained in:
parent
9ca097da58
commit
74d37b17f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user