Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VFS-497] Ported filters from Commons IO #9

Closed
wants to merge 1 commit into from
Closed

[VFS-497] Ported filters from Commons IO #9

wants to merge 1 commit into from

Conversation

michael-schnell
Copy link

@michael-schnell michael-schnell changed the title Ported filters from Commons IO [VFS-497] Ported filters from Commons IO Jun 26, 2015
@PascalSchumacher
Copy link
Contributor

@ecki @garydgregory Any opinion on this?

@garydgregory
Copy link
Member

I do not like it. Commons CVS is already a kitchen sink of sorts, so would just centralize all filters in Commons IO and make VFS depend on IO.

@garydgregory
Copy link
Member

Darn autocomplete! I meant VFS, not CSV.

@michael-schnell
Copy link
Author

I checked this option before I decided to port the code to VFS. Unfortunately commons IO filter uses the Java type File all over the place. You would need to make an incompatible change to the commons io code or create a new package for it. So, I'd suggest just to merge the (three years old) code.

@ecki
Copy link
Contributor

ecki commented Aug 15, 2017

It's a bit heavyweight and I had no need for those filters however I like the fact that the patch does not add a dependency, so it is fine with me. Will merge it.

@michael-schnell
Copy link
Author

Great. Go ahead!

asfgit pushed a commit that referenced this pull request Mar 31, 2019
Patch from Michael Schnell adapted to different folder names. Also clean
ups like removing extra generics in object creation not needed since
Java 7.
@garydgregory
Copy link
Member

Merged with some changes.

asfgit pushed a commit that referenced this pull request Apr 1, 2019
Add @SInCE 2.4 and convert IOCase from class to enum.
Use try-with-resources.
asfgit pushed a commit that referenced this pull request Apr 1, 2019
Add CanExecuteFileFilter.
Better test method name.
Use try-with-resources.
Longer formatted lines.
asfgit pushed a commit that referenced this pull request Apr 1, 2019
asfgit pushed a commit that referenced this pull request Apr 19, 2019
The method org.apache.commons.vfs2.FileFilter.accept(FileSelectInfo) now
throws a FileSystemException. This change is binary compatible but is
not source compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants