svn_fs_is_file

(PECL svn >= 0.2.0)

svn_fs_is_fileDetermines 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 发布版本中未通知就被修改。使用本函数风险自担。

添加备注

用户贡献的备注 1 note

up
0
ytcheng at qq dot com
14 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);
?>
To Top