|
getDirectoryTree
public function getDirectoryTree($folder = '/', $version = -1, $recursive = true)
Function-Reference, Language-EN getDirectoryTreeThis method returns the complete tree of files and directories in $folder from the version $version of the repository.
Note: The first result returned in the array is intentionally the directory you are accessing. UsagegetDirectoryTree($folder, $version, $recursive); Example$url = 'http://phpsvnclient.googlecode.com/svn/';
require_once("phpsvnclient.php");
$phpsvnclient = new phpsvnclient($url);
$directory_tree = $phpsvnclient->getDirectoryTree('/trunk/');
echo "<pre>\n";
print_r($directory_tree);
echo "</pre>\n";
|
► Sign in to add a comment
'getDirectoryTrunk' should spell 'getDirectoryTree'
Fixed
This function seems to output exactly the same thing as getDirectoryFiles...