SUMMARY Due probably some bad sectors on my HDD, Dolphin reports a few folders as empty. However, `ls -lah` reveal, that there are files actually, though tagged with ` Input/output error (os error 5)]`. It would be convenient if Dolphin showed an inline error on opening such a folder, saying `There are files, which cannot be accessed and displayed ( Input/output error (os error 5)])`
How would Dolphin know that the folder actually has content in it? If it did an `ls` on every folder you opened, the result would be huge performance regressions with certain folders. How could this be implemented without reducing performance eve everyone?
I am not quiet sure how Dolphin works in this regard, but I could imagine that Dolphin does something similar like `ls` already does when it tries to read files (names, properties) in a folder and probably simply disregards those, which are not accessible. Maybe a Dolphin expert can clarify if my idea makes sense overall or it's not achievable the way I imagine it.
Dolphin uses KIO, so if KIO can't find the files, the only alternative is for KIO itself to have an internal fallback to check its own work like what I indicated. However if it did that, everything would be slower because it would essentially be doing the same work twice anytime you asked it for anything. I think you should get a new disk. :) And if you don't have plasma-disks installed, you should install it so it can warn you about this in the future! And if you to have plasma-disks installed but it didn't warn you, you should file a bug on it saying that it should!
(In reply to Nate Graham from comment #3) > Dolphin uses KIO, so if KIO can't find the files The question was, how does KIO find files. If you can get me a pointer, I'd be happy. :) > I think you should get a new disk. :) That's 100% sure! Definitely, and keep doing backups! > And if you to have plasma-disks installed but it didn't warn you, you should file a bug on it saying that it should! I have it installed, but I don't think it applies to USB HDD drives. At least this particular disk is not shown in the SMART Status section of the Info Center.
Never mind my last comment about plasma5-disks: I had to disable `uas? for the usb hdd in order to make smart work: https://askubuntu.com/a/692892 :-) ... and now it says "This device appears to be working as expected" :-P