I'd like to assign a certain file type to files without extension (i.e. bash scripts).
I managed this by using FileTypeConsumer.consume(FileType, FileNameMatcher) .
FileNameMatcher only get ths file without path, though.
Now I only want accept those files which begin with the shebang line (#!/bin/sh).
How can I get the full path to the file?