https://bz.apache.org/bugzilla/show_bug.cgi?id=66048
--- Comment #4 from Stefan Bodewig <[email protected]> --- "it's always been that way" - this is not an excuse for not changing anything but rather a warning that probably nobody of us remembers why the call to list() is there. One thing I know is that you can't restrict listing to files for which File.isDirectory returns true - it will return false for symlinks to directories and there may be other non-Directory list()able Files on strange file systems (OpenVMS logicals?) I've forgotten. We want to separate files from directories and at least at one point in time invoking list() seemed to be the best option. It is quite possible using NIO and reading file attributes is more reliable today than Java 1.2 has been at the time the initial code has been written. We'll have to triple-check changes in such a central and heavy used piece of code, though. -- You are receiving this mail because: You are the assignee for the bug.
