From 74d37b17f02e01126c41c7d2453a027aedb5e4e0 Mon Sep 17 00:00:00 2001 From: janwas Date: Fri, 31 Jul 2009 21:31:04 +0000 Subject: [PATCH] # (hopefully) correctly create missing directories, e.g. data/cache/ refs #279 This was SVN commit r7057. --- source/lib/file/vfs/vfs_lookup.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/lib/file/vfs/vfs_lookup.cpp b/source/lib/file/vfs/vfs_lookup.cpp index 78f44b8b46..7eea92cffc 100644 --- a/source/lib/file/vfs/vfs_lookup.cpp +++ b/source/lib/file/vfs/vfs_lookup.cpp @@ -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)