Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: svn_mkdir - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: svn_mkdir

2025-06-02

svn_mkdir

(PECL svn >= 0.4.0)

svn_mkdirCreates a directory in a working copy or repository

说明

svn_mkdir(string $path, string $log_message = ?): bool

Creates a directory in a working copy or repository.

参数

path

The path to the working copy or repository.

返回值

成功时返回 true, 或者在失败时返回 false

参见

  • svn_add() - 在工作目录列入新增项
  • svn_copy()
添加备注

用户贡献的备注 1 note

up
0
ckozler at ckozler dot net
13 years ago
I would just like to note that there is either an error in the documentation or a bug in the code. When you run svn_mkdir it returns FALSE even on success. As an example you can do

<?php

var_dump
( svn_mkdir( "/path/to/your/repo/mydir" ) );

?>

And youll see that the output is

bool(false)

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

冷却塔厂家 广告
中文GPT4.0无需注册 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3