« svn_commit
svn_diff »

svn_delete

(PECL svn >= 0.4.0)

svn_delete — Delete items from a working copy or repository

説明

function svn_delete(string $path, bool $force = false): bool

Deletes the file, directory or symbolic link at path from the working directory. The item will be deleted from the repository the next time you call svn_commit() on the working copy.

パラメータ

path

Path of item to delete.

注意:

相対パスは、PHP バイナリが存在するディレクトリを基準として解決されます。呼び出しもとのスクリプトの作業ディレクトリを基準とするには、realpath() あるいは dirname(__FILE__) を使用してください。

force

If true, the file will be deleted even if it has local modifications. Otherwise, local modifications will result in a failure. Default is false

戻り値

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

注意

警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

関連キーワード:
working   delete   copy   repository   Delete   items   path   commit   force   directory   item   deleted   基準   local   modifications   diff   Deletes   symbolic   link   next   time   call   Path   相対   バイナリ
関連する関数・ページ:
function.svn-add   function.svn-revert   function.svn-export   function.svn-commit   function.svn-update   function.svn-status