PHP 8.3.4 Released!

svn_cleanup

(PECL svn >= 0.1.0)

svn_cleanupRecursively cleanup a working copy directory, finishing incomplete operations and removing locks

Açıklama

svn_cleanup(string $workingdir): bool

Recursively cleanup working copy directory workingdir, finishing any incomplete operations and removing working copy locks. Use when a working copy is in limbo and needs to be usable again.

Bağımsız Değişkenler

workingdir

String path to local working directory to cleanup

Bilginize: Göreli yollar, geçerli çalışma dizini PHP çalıştırılabilirini içeren dizinlerden biriymiş gibi çözümlenir. Betiğin çalıştırıldığı dizini kullanmak için realpath() işlevi veya dirname(__FILE__) kullanılır.

Dönen Değerler

Başarı durumunda true, başarısızlık durumunda false döner.

Örnekler

Örnek 1 Basic example

This example demonstrates clean up of a working copy in a directory named help-me:

<?php
svn_cleanup
(realpath('help-me'));
?>

The realpath() call is necessary due to SVN's quirky handling of relative paths.

Notlar

Uyarı

Bu işlev DENEYSELDİR. Bu işlevin davranışı, ismi ve belgeleri PHP'nin sonraki sürümlerinde hiçbir duyuru yapılmaksızın değiştirilebilir. Bu risk göze alınamayacaksa bu işlev kullanılmamalıdır.

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top