@@ -121,7 +121,7 @@ class FilePattern { | |||
} | |||
public boolean accept(File file) { | |||
return pattern.match(file.getAbsolutePath()); | |||
return pattern.match(FilenameUtils.separatorsToUnix(file.getAbsolutePath())); | |||
} | |||
public boolean accept(File file, String filename) { |
@@ -76,7 +76,6 @@ public class FilePatternTest { | |||
} | |||
private String path(File f) throws IOException { | |||
String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath()); | |||
return StringUtils.removeEnd(s, "/"); | |||
return FilenameUtils.separatorsToUnix(f.getCanonicalPath()); | |||
} | |||
} |