php man page for svn_add

Query: svn_add

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SVN_ADD(3)								 1								SVN_ADD(3)

svn_add - Schedules the addition of an item in a working directory

SYNOPSIS
bool svn_add (string $path, [bool $recursive = true], [bool $force = false])
DESCRIPTION
Adds the file, directory or symbolic link at $path to the working directory. The item will be added to the repository the next time you call svn_commit(3) on the working copy.
PARAMETERS
o $path - Path of item to add. Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $recursive - If item is directory, whether or not to recursively add all of its contents. Default is TRUE o $force - If true, Subversion will recurse into already versioned directories in order to add unversioned files that may be hiding in those directories. Default is FALSE
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.
EXAMPLES
Example #1 svn_add(3) example In a working directory where svn status returns: $ svn status ? foobar.txt <?php svn_add('foobar.txt'); ?> ...will schedule foobar.txt for addition into the repository.
SEE ALSO
SVN documentation on svn add. PHP Documentation Group SVN_ADD(3)
Related Man Pages
svnpath(1) - linux
is_dir(3) - php
svn_cleanup(3) - php
svn_commit(3) - php
svn_update(3) - php
Similar Topics in the Unix Linux Community
recursive copy of the directory
*/5 not working in AIX
pasting two files in every directory (+100 directories)
Bash menu not running
Search strings from a file in files in a directory recursively; then print the string with a status