FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Set *KIND_P to the type of node present at PATH under ROOT.  If
   PATH does not exist under ROOT, set *KIND_P to svn_node_none.  Use
   SCRATCH_POOL for temporary allocation. */
Set *KIND_P to the type of node present at PATH under ROOT.  If
PATH does not exist under ROOT, set *KIND_P to svn_node_none.  Use
SCRATCH_POOL for temporary allocation.
Set * KIND_P to the type of node present at PATH under ROOT . If PATH does not exist under ROOT set * KIND_P to svn_node_none . Use SCRATCH_POOL for temporary allocation .
svn_error_t *
svn_fs_x__check_path(svn_node_kind_t *kind_p,
                     svn_fs_root_t *root,
                     const char *path,
                     apr_pool_t *scratch_pool)
{
  svn_error_t *err = node_kind(kind_p, root, path, scratch_pool);
  if (err &&
      ((err->apr_err == SVN_ERR_FS_NOT_FOUND)
       || (err->apr_err == SVN_ERR_FS_NOT_DIRECTORY)))
    {
      svn_error_clear(err);
      err = SVN_NO_ERROR;
      *kind_p = svn_node_none;
    }
  return svn_error_trace(err);
}
svn_error_t * svn_fs_x__check_path ( svn_node_kind_t * kind_p , svn_fs_root_t * root , const char * path , apr_pool_t * scratch_pool ) { svn_error_t * err = node_kind ( kind_p , root , path , scratch_pool ) ; if ( err && ( ( err -> apr_err == SVN_ERR_FS_NOT_FOUND ) || ( err -> apr_err == SVN_ERR_FS_NOT_DIRECTORY ) ) ) { svn_error_clear ( err ) ; err = SVN_NO_ERROR ; * kind_p = svn_node_none ; } return svn_error_trace ( err ) ; }
Set *KIND_P to the type of node present at PATH under ROOT.
Set * KIND_P to the type of node present at PATH under ROOT .