static PyObject *fs_root_is_dir(FileSystemRootObject *self, PyObject *args) { svn_boolean_t is_dir; apr_pool_t *temp_pool; char *path; if (!PyArg_ParseTuple(args, "s", &path)) return NULL; temp_pool = Pool(NULL); if (temp_pool == NULL) return NULL; RUN_SVN_WITH_POOL(temp_pool, svn_fs_is_dir(&is_dir, self->root, path, temp_pool)); apr_pool_destroy(temp_pool); return PyBool_FromLong(is_dir); }
bool is_dir(std::string const& path) const { svn_boolean_t result; check_svn(svn_fs_is_dir(&result, fs_root, path.c_str(), apr_pool)); return result; }