0

How to filter files at the source itself in Java? I want to know if there is any file-system level filter available which takes in a regex and returns only matching results.

I know there is FileFilter interface but, this does post filtering after getting all the files under a directory when passed to listFiles() if I'm not wrong.

raghu
  • 131
  • 3
  • 13
  • `filter files at the source itself` - I dont get u – The Coder Jul 27 '16 at 19:14
  • @TheCoder I mean at the OS level itself. When I call file.listFiles(filter), it should return me filtered results. Is there anything like that? – raghu Jul 27 '16 at 19:17
  • Maybe this is what youre looking for: [how-to-find-files-that-match-a-wildcard-string-in-java](http://stackoverflow.com/questions/794381/how-to-find-files-that-match-a-wildcard-string-in-java) – Ayon Nahiyan Jul 27 '16 at 19:50

0 Answers0