edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

SecureFTPConnectionChangeOwner Method

[SFTP Only] Changes the owner of the specified file or directory.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public void ChangeOwner(
	int ownerID,
	string path
)

Parameters

ownerID  Int32
numerical user id of the owner
path  String
the path to the file/directory on the remote server

Remarks

Only numerical user ids are supported currently. Use ExecuteCommand to run a Unix command on the server if required (e.g. chown). Not all servers will permit this command.

See Also