<?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
) : boolEsta função não está documentada; somente a lista de argumentos está disponível.
Return true if the path points to a file, false otherwise
Esta função é EXPERIMENTAL. O comportamento, seu nome e documentação podem mudar sem aviso em futuras versões do PHP. Utilize por sua própria conta e risco.
<?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);
?>