• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • svn_fs_is_file()

    (PECL svn >= 0.2.0)

    Return true if the path points to a file, false otherwise

    说明

    svn_fs_is_file(resource $root,string $path): bool
    Warning

    本函数还未编写文档,仅有参数列表。

    Return true if the path points to a file, false otherwise

    注释

    Warning

    此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的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);
    ?>