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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

jochen-2
On Fri, Jun 8, 2018 at 5:07 PM Gary Gregory (JIRA) <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

garydgregory
On Tue, Jun 12, 2018 at 4:25 AM Jochen Wiedmann <[hidden email]>
wrote:

> On Fri, Jun 8, 2018 at 5:07 PM Gary Gregory (JIRA) <[hidden email]>
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>