/** * delete a file in a webdav server using the current domain * * @param delPath The path relative to the domain for the file to be deleted * @return The complete path of the file deleted or null if not deleted */ public String deleteFile(String delPath) { String result = null; try { if (_isLocal) { File tmpFile = new File(_rootFile.getCanonicalPath() + File.separatorChar + delPath); if (tmpFile.isFile()) { if (tmpFile.delete()) result = tmpFile.getCanonicalPath(); } } else { result = _remote.deleteFile(_domain, delPath); } } catch (Exception ex) { ex.printStackTrace(); } return result; }