略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: svn_fs_is_file

2024-04-25

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

add a noteadd a note

User Contributed Notes 1 note

up
0
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);
?>

官方地址:https://www.php.net/manual/en/function.svn-fs-is-file.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3