chmod


Description:

[ Version ( since = "0.8" ) ]
public bool chmod (int32 mode, string path) throws Error

change file mode

Change the mode (permissions) of path to mode. Only numeric modes are supported.

*Note*: When using this command from guestfish, mode by default would be decimal, unless you prefix it with @0 to get octal, ie. use @0700 not @700.

The mode actually set is affected by the umask.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org