void dir_cpi_impl::sync_is_file(bool & is_file, saga::url name) { adaptor_data_t adata(this); instance_data idata(this); this->throw_if_local(idata->location_); this->check_if_open ("dir_cpi_impl::sync_is_file", idata->location_); saga::url u = merge_urls(idata->location_.get_url(), name); try { GridFTPConnection * ConnectionHandle = adata->getConnectionHandleForURL(u, write_log_, logfile_loc_); is_file = ConnectionHandle->is_file(u.get_url()); } catch( globus_gridftp_file_adaptor::exception const &e) { error_package ep = globus_gridftp_file_adaptor ::error_default_redirect(e, idata->location_.get_url()); SAGA_OSSTREAM strm; strm << "Could not check if [" << u.get_url() << "] is an entry. " << ep.error_text; SAGA_ADAPTOR_THROW(SAGA_OSSTREAM_GETSTRING(strm), ep.saga_error); } }