/** * Request recursive removal of the specified directory. */ private void removeDir(File file, Payload.Outbound payload) throws IOException { payload.requestFileRemoval( domainRootUri.relativize(file.toURI()), "configChange", null, true); // recursive removal }
/** * Request recursive removal of the specified directory. */ private void removeDir(File file, Payload.Outbound payload) throws IOException { payload.requestFileRemoval( domainRootUri.relativize(file.toURI()), "configChange", null, true); // recursive removal }
/** * Send a request to the client to remove the specified file. * The file is named by mt.name, relative to base. The name * used in the response will be relative to root. */ private void removeFile(URI root, File base, ModTime mt, Payload.Outbound payload) throws URISyntaxException { File f = fileOf(base, mt.name); if (logger.isLoggable(Level.FINEST)) logger.finest("ServerSynchronizer: file " + mt.name + " removed from client"); try { logger.fine("ServerSynchronizer: removing file " + f + " because it does not exist on the DAS"); payload.requestFileRemoval( root.relativize(f.toURI()), "configChange", null); } catch (IOException ioex) { logger.fine("ServerSynchronizer: IOException removing file: " + f); logger.fine(ioex.toString()); } }
/** * Send a request to the client to remove the specified file. * The file is named by mt.name, relative to base. The name * used in the response will be relative to root. */ private void removeFile(URI root, File base, ModTime mt, Payload.Outbound payload) throws URISyntaxException { File f = fileOf(base, mt.name); if (logger.isLoggable(Level.FINEST)) logger.finest("ServerSynchronizer: file " + mt.name + " removed from client"); try { if (logger.isLoggable(Level.FINE)) logger.fine("ServerSynchronizer: removing file " + f + " because it does not exist on the DAS"); payload.requestFileRemoval( root.relativize(f.toURI()), "configChange", null); } catch (IOException ioex) { if (logger.isLoggable(Level.FINE)) { logger.fine("ServerSynchronizer: IOException removing file: " + f); logger.fine(ioex.toString()); } } }