/** * Tests whether the file denoted by the specified path exists. * * @param path the full path name of the file to be checked. * @return true if and only if the file denoted by the specified path exists; false otherwise * @see java.io.File.exist() * @author Goh Kan Mun * @since 2.0 * @version 2.0 */ public boolean exist(String path) { try { if (_isLocal) { File tmpFile = new File(_rootFile.getCanonicalPath() + File.separatorChar + path); return (tmpFile.exists()); } else { return _remote.exist(_domain, path); } } catch (Exception ex) { ex.printStackTrace(); } return false; }