@Override
        public int compare(Path f1, Path f2) {
            if (f1 == null || f2 == null) {
                return 0;
            }
            return f1
                    .getFileName()
                    .toString()
                    .compareTo(f2
                            .getFileName()
                            .toString());
        }
Override this if you have any special handling
for the first actual file that the crawler comes across
in a directory.  For example, it might be handy to call
mkdirs() on an output directory if your FileResourceConsumers
are writing to a file.

@param f file to handle
tika-batch/src/main/java/org/apache/tika/batch/fs/FSDirectoryCrawler.java