int separatorIndex = pathAndPattern.lastIndexOf(File.separator);
String path = pathAndPattern.substring(0, separatorIndex + 1);
String pattern = pathAndPattern.substring(separatorIndex + 1);
File[] files = new File(path).listFiles((FileFilter) new GlobFilenameFilter(pattern));
files = (files == null ? new File[0] : files);
return ContainerUtil.map(files, new Function<File, String>() {
@Override public String fun(File file) {
return file.getAbsolutePath();
}