git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [jira] [Commented] (IO-579) FilenameUtils.isExtension() is case-sensitive


On Fri, Jun 8, 2018 at 5:07 PM Gary Gregory (JIRA) <jira@xxxxxxxxxx> wrote:

> Case-sensitivity for file names depends on the file system. The Javadoc for this method specifies "The extension check is case-sensitive on all platforms." There is nothing to fix in this API IMO.

To me, this sounds like a strong indicator, that we should overhaul IO
in the following direction: Remove static methods in favour of a few
FileSystem objects (Windows, and Linux/Unix/Mac) with different
behaviour for case sensitivity, separators, and so on.

IO is outdated, as it is. Beginners (like this guy, perhaps) are
unable to cope with it. Advanced users find it useless.

Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxxx




( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-commons-developers/msg06552.html on line 87
Call Stack
#TimeMemoryFunctionLocation
10.0011363712{main}( ).../msg06552.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-commons-developers/msg06552.html on line 87
Call Stack
#TimeMemoryFunctionLocation
10.0011363712{main}( ).../msg06552.html:0