IBridgeRename Method

ファイルやディレクトリの名前を変更します。

Definition

Namespace: Kasasagi.DavServer
Assembly: Kasasagi.DavServer (in Kasasagi.DavServer.dll) Version: 1.0.1+092e35ef41f9c66a6f060a166bd1527db0f2dce3
C#
bool Rename(
	string path,
	string name
)

Parameters

path  String
変更対象の絶対パスが渡されます。
name  String
変更後の新しい名前が渡されます。

Return Value

Boolean
名前を変更できた場合はtrue、変更できなかった場合はfalseを返します。

Remarks

ファイル名を変更するに当たり、 新しい名前と同じ名前のファイルが既に存在する場合、 このメソッドは何も行わずにfalseを返します。 同様に、ディレクトリ名を変更するに当たり、 新しい名前と同名のディレクトリが既に存在する場合、 このメソッドは何も行わずにfalseを返します。

See Also