mirror of https://github.com/stella-emu/stella.git
Attempt to speed up directory parsing.
This commit is contained in:
parent
fadd3eccf1
commit
ccf4f5e92b
|
@ -128,10 +128,7 @@ bool FSNodeREGULAR::getChildren(AbstractFSList& myList, ListMode mode) const
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
std::error_code ec;
|
std::error_code ec;
|
||||||
for (const auto& entry: fs::directory_iterator{_fspath,
|
for (const auto& entry: fs::directory_iterator{_fspath, ec})
|
||||||
fs::directory_options::follow_directory_symlink |
|
|
||||||
fs::directory_options::skip_permission_denied,
|
|
||||||
ec})
|
|
||||||
{
|
{
|
||||||
const auto& path = entry.path();
|
const auto& path = entry.path();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue