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

SSHFTPClientChMod Method

Changes the access permissions or modes of the specified file or directory.

Definition

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

Parameters

permissions  Int32
the absolute mode of the file/directory. This must be the base 10 representation of the octal permissions
path  String
the path to the file/directory on the remote server

Remarks

Modes determine who can read, change or execute a file.

Absolute modes are octal numbers specifying the complete list of
            attributes for the files; you specify attributes by OR'ing together
            these bits.
            
            0400       Individual read
            0200       Individual write
            0100       Individual execute (or list directory)
            0040       Group read
            0020       Group write
            0010       Group execute
            0004       Other read
            0002       Other write 

See Also