logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

change-mode - (directories files)

Description

change-mode will change permission mode for <file-or-directory> to <mode> as specified in "mode" clause. <mode> is a number, typically specified as octal (such as for instance 0750), see permissions. <file-or- directory> is a string that may be an absolute or relative path. If "status" clause is used, then number <status> is GG_OKAY if succeeded, GG_ERR_EXIST if file or directory does not exist, or GG_ERR_FAILED for other errors (in which case you can use "errno" clause in get-req to find the specific reason why).

Examples

To give read and write privilege to user's group members ("6" means that as a second digit): change-mode "myfile" mode 0760

Name

change-mode - (directories files)

Purpose

Change permission mode for a file or directory.

See Also

Directories change-dirchange-modedelete-dirdirectoriesnew-dir Files change-modeclose-filecopy-filedelete-filefile-positionfile-storagefile-uploadinglock-fileopen-fileread-fileread-linerename-filestat-filetemporary-fileuniq-fileunlock-filewrite-file See all documentation $DATE $VERSION GOLF(2gg)

Syntax

change-mode <file-or-directory> mode <mode> [ status <status> ]

See Also