throw new IOException(format("cannot delete %s", file));
}
public List<Route> getRoutes() throws IOException {
List<Route> routes = new ArrayList<Route>();
for (File file : directory.listFiles(new FileFileFilter())) {
String name = decodeUri(file.getName());
if (isPotentialValidLink(file)) {
WindowsShortcut shortcut = new WindowsShortcut(file);
if (shortcut.isFile()) {
name = removeExtension(name);