apr_dir_make_recursive only on Unix and Win32?
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-30 01:18:35 CET
APR has versions of apr_dir_make_recursive for UNIX and Win32. On OS2 it returns NOT_IMPLEMENTED, and on Netware and Beos it doesn't exist. What is the remit of APR? That is, does it aim to provide each facility uniformly on each platform regardless of how much code that requires, or does it aim to provide some facilities only on platforms where that facility is cheaply available?
I seriously don't mean this as a dig at APR. I just want to know which it is. If the former, then we should move our cross-platform code to make a directory recursively (below) into APR where it can be of benefit to others. If the latter, then the ### comment below can go away.
- Julian
Index: subversion/libsvn_subr/io.c
SVN_ERR (svn_path_cstring_from_utf8 (&path_apr, path, pool));
#if 0
/* Try to make PATH right out */
/* It's OK if PATH exists */
if (APR_STATUS_IS_ENOENT(apr_err))
dir = svn_path_dirname (path, pool);
if (!svn_err)
return svn_err;
/* If we get here, there must be an apr_err. */
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.