File method listFiles() returns a list of files and folders, but the folders include some not shown by Windows Explorer. The extra folders all claim to be empty so are no use. Is there any way to filter out those not shown by WE to make the user experience more consistent? (I thought canonicalisation might resolve them but it doesn't.)
I suspect these folders all have their hidden flag set, so you could test for that and filter out all hidden folders.
Joined: Nov 09, 2008
You're right, but it's not what Windows calls "hidden files, folders and drives", which I already had set to "show". If I turn off "Hide protected operating system files (Recommended)" then WE shows them. Some are access-denied, some are merely shortcuts, but it makes more sense now.
Presumably isHidden() will pick up those that are simply marked as hidden, as well as system folders.