method

chmod

chmod(path, mode, config = {})
public

Changes the mode of the given file or directory.

Parameters

mode

the file mode

path

the name of the file to change mode

config

give :verbose => false to not log the status.

Example

chmod "script/server", 0755