@Override
    public String getFilename() {
        return (this.file != null ? this.file.getName() : this.filePath.getFileName().toString());
    }
This implementation returns the name of the file.

see java.io.File#getName()
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/FileSystemResource.java