attempt at ignoring paths, by using pattern matching on file.getAbsolutePath(), instead of file.getName()