mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DiscIO: Fix recursive directory extraction
https://bugs.dolphin-emu.org/issues/12331
This commit is contained in:
parent
5abae61a8c
commit
b43f7c85cc
4 changed files with 13 additions and 3 deletions
|
@ -130,8 +130,10 @@ void ExportDirectory(const Volume& volume, const Partition& partition, const Fil
|
|||
const std::string& export_folder,
|
||||
const std::function<bool(const std::string& path)>& update_progress)
|
||||
{
|
||||
const std::string export_root =
|
||||
export_folder + (directory.IsDirectory() ? "/" + directory.GetName() + "/" : "/");
|
||||
std::string export_root = export_folder + '/';
|
||||
if (directory.IsDirectory() && !directory.IsRoot())
|
||||
export_root += directory.GetName() + '/';
|
||||
|
||||
File::CreateFullPath(export_root);
|
||||
|
||||
for (const FileInfo& file_info : directory)
|
||||
|
@ -154,7 +156,8 @@ void ExportDirectory(const Volume& volume, const Partition& partition, const Fil
|
|||
}
|
||||
else if (recursive)
|
||||
{
|
||||
ExportDirectory(volume, partition, file_info, recursive, path, export_path, update_progress);
|
||||
ExportDirectory(volume, partition, file_info, recursive, filesystem_path, export_root,
|
||||
update_progress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue