pub unsafe extern "C" fn svn_wc_add_from_disk3(
wc_ctx: *mut svn_wc_context_t,
local_abspath: *const c_char,
props: *const apr_hash_t,
skip_checks: svn_boolean_t,
notify_func: svn_wc_notify_func2_t,
notify_baton: *mut c_void,
scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Schedule the single node that exists on disk at @a local_abspath for addition to the working copy. The added node will have the properties provided in @a props, or none if that is NULL.
Unless @a skip_checks is TRUE, check and canonicalize the properties in the same way as svn_wc_prop_set4(). Return an error and don’t add the node if the properties are not valid on this node.
§The error code on validity check failure should be specified, and
preferably should be a single code.
The versioned state of the parent path must be a modifiable directory, and the versioned state of @a local_abspath must be either nonexistent or deleted; if deleted, the new node will be a replacement.
If @a local_abspath does not exist as file, directory or symlink, return #SVN_ERR_WC_PATH_NOT_FOUND.
If @a notify_func is non-NULL, invoke it with @a notify_baton to report the item being added.
§TODO: Split into add_dir, add_file, add_symlink?
@since New in 1.9.