Re: [IO] Commons IOIO-552 FilenameUtils.concat fails if second argument (fullFilenameToAdd) starts with '~' (tilde)

2023-05-30 Thread Miguel Muñoz
That sounds like a good approach, and is one that I've taken before on other classes. But I want to be clear about something. Are you thinking of private builders that are invoked by static methods? This would mean the API wouldn't change much. Or were you thinking of having the user

Re: [IO] Commons IOIO-552 FilenameUtils.concat fails if second argument (fullFilenameToAdd) starts with '~' (tilde)

2023-05-28 Thread Gary Gregory
Neither approach is what I'd prefer. Instead I see a new class with a builder to let you choose whether or not shell substitution to takes place and whatever other setting (maybe case sensitivity for example) SomeNewClass.builder() .setShellSubstitution(true) // replace ~ .build()

[IO] Commons IOIO-552 FilenameUtils.concat fails if second argument (fullFilenameToAdd) starts with '~' (tilde)

2023-05-26 Thread Miguel Munoz
Gary D. Gregory, I've offered two suggestions of how to fix Commons IOIO-552. One is add a new method called configStrict(), which treats tildes as part of the file name.The other is to deprecate the class and write a whole new class (FilenameUtils2 ?) that treats the tilde character as just