This commit is contained in:
kssenii 2021-05-05 19:55:02 +03:00
parent 2dabdd0f73
commit 5068b163b8

View File

@ -69,7 +69,14 @@ public:
bool isValid() const override { return entry != fs::directory_iterator(); }
String path() const override { return dir_path / entry->path().filename(); }
String path() const override
{
if (entry->is_directory())
return dir_path / entry->path().filename() / "";
else
return dir_path / entry->path().filename();
}
String name() const override { return entry->path().filename(); }