Skip to content

chmod

Source

Hook for changing the mode of a path or paths.

Inputs

Name Type Default Required Description
path Union[str, list] True String or list of paths, either directories or files.
mode str True The mode to write to the files. See python's os package chmod for more details.

Arguments

Position Argument Type
1 path Union[str, list]
2 mode str

Returns

NoneType

Examples

Basic

The most minimal implementation.

compact->: chmod tackle.yaml "0o600"
expanded:
  ->: chmod
  path: tackle.yaml
  mode: "0o600"