@Override public boolean delete(String url, boolean isRecursiveDelete) throws IOException { try { final File file = toFile(url); if (!isRecursiveDelete && file.isDirectory()) return false; return this.delete(file); } catch (URISyntaxException e) { throw new IOException("Cannot access file.", e); } }