} | } | ||||
public boolean accept(File file) { | public boolean accept(File file) { | ||||
return pattern.match(file.getAbsolutePath()); | |||||
return pattern.match(FilenameUtils.separatorsToUnix(file.getAbsolutePath())); | |||||
} | } | ||||
public boolean accept(File file, String filename) { | public boolean accept(File file, String filename) { |
} | } | ||||
private String path(File f) throws IOException { | private String path(File f) throws IOException { | ||||
String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath()); | |||||
return StringUtils.removeEnd(s, "/"); | |||||
return FilenameUtils.separatorsToUnix(f.getCanonicalPath()); | |||||
} | } | ||||
} | } |