Skip to content

Commit

Permalink
Fix regression from #18581
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 20, 2023
1 parent 8810d95 commit 2814369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/File/FileUtil.cpp
Expand Up @@ -519,8 +519,8 @@ bool CreateDir(const Path &path) {
// Convert it to a "CreateDirIn" call, if possible, since that's
// what we can do with the storage API.
AndroidContentURI uri(path.ToString());
std::string newDirName = uri.GetLastPart();
if (uri.NavigateUp()) {
std::string newDirName = uri.GetLastPart();
INFO_LOG(COMMON, "Calling Android_CreateDirectory(%s, %s)", uri.ToString().c_str(), newDirName.c_str());
return Android_CreateDirectory(uri.ToString(), newDirName) == StorageError::SUCCESS;
} else {
Expand Down

0 comments on commit 2814369

Please sign in to comment.