<?php
$repos = svn_repos_open($this->sourceRoot);
$fs = svn_repos_fs($repos);
$head = svn_fs_youngest_rev($fs);
$fsroot = svn_fs_revision_root($fs,$head);
echo svn_fs_is_file($fsroot,$path);
?>
(PECL svn >= 0.2.0)
svn_fs_is_file — Return true if the path points to a file, false otherwise
$root
, string $path
)This function is currently not documented; only its argument list is available.
Return true if the path points to a file, false otherwise
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.
<?php
$repos = svn_repos_open($this->sourceRoot);
$fs = svn_repos_fs($repos);
$head = svn_fs_youngest_rev($fs);
$fsroot = svn_fs_revision_root($fs,$head);
echo svn_fs_is_file($fsroot,$path);
?>