FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/fs_fs.c
/* If directory PATH does not exist, create it and give it the same
   permissions as FS_path.*/
If directory PATH does not exist, create it and give it the same
permissions as FS_path.
If directory PATH does not exist create it and give it the same permissions as FS_path .
svn_error_t *
svn_fs_fs__ensure_dir_exists(const char *path,
                             const char *fs_path,
                             apr_pool_t *pool)
{
  svn_error_t *err = svn_io_dir_make(path, APR_OS_DEFAULT, pool);
  if (err && APR_STATUS_IS_EEXIST(err->apr_err))
    {
      svn_error_clear(err);
      return SVN_NO_ERROR;
    }
  SVN_ERR(err);
  return svn_io_copy_perms(fs_path, path, pool);
}
svn_error_t * svn_fs_fs__ensure_dir_exists ( const char * path , const char * fs_path , apr_pool_t * pool ) { svn_error_t * err = svn_io_dir_make ( path , APR_OS_DEFAULT , pool ) ; if ( err && APR_STATUS_IS_EEXIST ( err -> apr_err ) ) { svn_error_clear ( err ) ; return SVN_NO_ERROR ; } SVN_ERR ( err ) ; return svn_io_copy_perms ( fs_path , path , pool ) ; }
If directory PATH does not exist, create it and give it the same
permissions as FS_path.
If directory PATH does not exist create it and give it the same permissions as FS_path .
/* We successfully created a new directory.  Dup the permissions
     from FS->path. */