Programming with FTP OLE Automation

image\rwnprg32.gif Chmod method

 

Syntax Object.Chmod Filename, Permissions

 

Description

Changes UNIX file or directory permissions.

This method is available only when you are connected to a UNIX or Linux server.

Arguments

Filename Argument type: String
Required
Specifies the name of a file or directory on a UNIX or Linux server.

Permissions Argument type: String
Required
This is a string value that specifies the permissions you want to apply to the specified file or directory. Use any three-digit numeral that is a valid value for the UNIX chmod command. Valid values have digits from 0 to 7. Refer to UNIX chmod command documentation for details.

For example, the following command sets the attributes of the specified file to -rw-r--r--.

Chmod "myfile.htm", "644"