<?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);
?>
PHP - Manual: svn_fs_is_file
2024-11-12
(PECL svn >= 0.2.0)
svn_fs_is_file — Determines if a path points to a file
$root
, string $path
): bool本函数还未编写文档,仅有参数列表。
Determines if the given path points to a file.
root
path
Returns true
if the path points to a file, false
otherwise.
此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担。
<?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);
?>
官方地址:https://www.php.net/manual/en/function.svn-fs-is-file.php