Skip to content

Commit

Permalink
FS|libcore: Only populate the folder that was asked for, not all parents
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 5, 2017
1 parent 6f73ab5 commit 2aea245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/sdk/libcore/src/filesys/filesystem.cpp
Expand Up @@ -114,7 +114,8 @@ Folder &FileSystem::makeFolder(String const &path, FolderCreationBehaviors behav
if (!subFolder)
{
// This folder does not exist yet. Let's create it.
Folder &parentFolder = makeFolder(path.fileNamePath(), behavior);
// If the parent folder is missing, it won't be populated yet.
Folder &parentFolder = makeFolder(path.fileNamePath(), behavior & ~PopulateNewFolder);

// It is possible that the parent folder has already populated the folder
// we're looking for.
Expand Down

0 comments on commit 2aea245

Please sign in to comment.