Fix regression from #18581

This commit is contained in:
Henrik Rydgård committed 2023-12-20 18:26:27 +01:00
1 parent 8810d95ab4
commit 28143697b6
1 file changed
+1 -1
+1 -1
View File
@@ -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 {