Class FilePathDepthComparator

java.lang.Object
ca.corbett.extras.io.FilePathDepthComparator
All Implemented Interfaces:
Comparator<File>

@Deprecated public class FilePathDepthComparator extends Object implements Comparator<File>
Deprecated.
Use FileNameComparator
A Comparator implementation for lists of File objects that will sort them according to depth, from shallowest to deepest. Dev note: I pulled this from FileSystemUtil's findSubdirectories() method because it adds a fair bit of performance overhead during large recursive searches, and also because it turns out I like the results from FileNameComparator better anyway. Leaving this here in case it's ever useful.
Since:
2022-05-10
Author:
scorbo2
  • Constructor Details

    • FilePathDepthComparator

      public FilePathDepthComparator()
      Deprecated.
  • Method Details