mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-05 00:56:13 +00: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:
commit
06d0b1ad48
2 changed files with 24 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue