You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2018/06/12 10:25:07 UTC

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

On Fri, Jun 8, 2018 at 5:07 PM Gary Gregory (JIRA) <ji...@apache.org> 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@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


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

Posted by Gary Gregory <ga...@gmail.com>.
On Tue, Jun 12, 2018 at 4:25 AM Jochen Wiedmann <jo...@gmail.com>
wrote:

> On Fri, Jun 8, 2018 at 5:07 PM Gary Gregory (JIRA) <ji...@apache.org>
> 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.
>

A big +1 from me.

Gary


>
> 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@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>