SVN 函数
在线手册:中文 英文
PHP手册

svn_mkdir

(PECL svn >= 0.4.0)

svn_mkdirCreates a directory in a working copy or repository

说明

bool svn_mkdir ( string $path [, string $log_message ] )

Creates a directory in a working copy or repository.

参数

path

The path to the working copy or repository.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


SVN 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Creates a directory in a working copy or repository

用户评论:

ckozler at ckozler dot net (15-Feb-2012 01:25)

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)