commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Resolved: (IO-156) add methods normalizePreserveSepartor and normalizePreserverSepartorNoEndseparator
Date Thu, 04 Dec 2008 01:51:44 GMT


Niall Pemberton resolved IO-156.

       Resolution: Fixed
    Fix Version/s: 2.0
         Assignee: Niall Pemberton

One downside though is that these methods currently produce consistent file names with the
same separator - if you had a file name with mixed separators it would have inconsistent results.
I have added flavours of the two methods where you can specify unix or windows style separators
using a boolean parameter:

    public static String normalize(String filename, boolean unixSeparator)
    public static String normalizeNoEndSeparator(String filename, boolean unixSeparator)

> add methods normalizePreserveSepartor and normalizePreserverSepartorNoEndseparator
> ----------------------------------------------------------------------------------
>                 Key: IO-156
>                 URL:
>             Project: Commons IO
>          Issue Type: New Feature
>    Affects Versions: 1.3.2
>            Reporter: Michael
>            Assignee: Niall Pemberton
>            Priority: Minor
>             Fix For: 2.0
> Those are the same methods as normalize(String filename) and normalizeNoEndSeparator(String
filename) but without converting path separator to the platform.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message