mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Merge pull request #8594 from leoetlino/fs-createfullpath-fix
IOS/FS: Fix CreateFullPath to not create directories that already exist
This commit is contained in:
@ -115,9 +115,12 @@ ResultCode FileSystem::CreateFullPath(Uid uid, Gid gid, const std::string& path,
|
||||
if (metadata && metadata->is_file)
|
||||
return ResultCode::Invalid;
|
||||
|
||||
const ResultCode result = CreateDirectory(uid, gid, subpath, attribute, modes);
|
||||
if (result != ResultCode::Success && result != ResultCode::AlreadyExists)
|
||||
return result;
|
||||
if (!metadata)
|
||||
{
|
||||
const ResultCode result = CreateDirectory(uid, gid, subpath, attribute, modes);
|
||||
if (result != ResultCode::Success)
|
||||
return result;
|
||||
}
|
||||
|
||||
++position;
|
||||
}
|
||||
|
Reference in New Issue
Block a user