svn_fs_is_file
(PECL svn >= 0.2.0)
svn_fs_is_file — Determines if a path points to a file
说明
svn_fs_is_file(resource
$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 发布版本中未通知就被修改。使用本函数风险自担。

User Contributed Notes 1 note
ytcheng at qq dot com ¶
11 years ago
<?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);
?>
备份地址:http://www.lvesu.com/blog/php/function.svn-fs-is-file.php