svn_ls()
svn_ls - Returns list of directory contents in repository URL, optionally at revision number
Syntax
array svn_ls (
string $repos_url,
int $revision_no,
bool $recurse)
Arguments
- repos_url - URL of the repository, eg. http://www.example.com/svnroot. To access a local Subversion repository via filesystem, use the file URI scheme, eg. file:///home/user/svn-repos
- revision_no - Integer revision number to retrieve listing of. When omitted, the HEAD revision is used.
- recurse - Enables recursion.
Description
This function queries the repository URL and returns a list of files and directories, optionally from a specific revision. This is equivalent to svn list $repos_url[@$revision_no]
Version
PHP PECL svn >= 0.1.0
Return value
On success, this function returns an array file listing in the format of: [0] => Array ( [created_rev] => integer revision number of last edit [last_author] => string author name of last edit [size] => integer byte file size of file [time] => string date of last edit in form 'M d H:i' or 'M d Y', depending on how old the file is [time_t] => integer unix timestamp of last edit [name] => name of file/directory [type] => type, can be 'file' or 'dir')[1] =>...