CakeFest 2024: The Official CakePHP Conference

svn_mkdir

(PECL svn >= 0.4.0)

svn_mkdir作業コピーあるいはリポジトリ内にディレクトリを作成する

説明

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

作業コピーあるいはリポジトリ内にディレクトリを作成します。

パラメータ

path

作業コピーあるいはリポジトリへのパス。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

  • svn_add() - Schedules the addition of an item in a working directory
  • svn_copy()

add a note

User Contributed Notes 1 note

up
0
ckozler at ckozler dot net
12 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)
To Top